summaryrefslogtreecommitdiffstats
path: root/test/test_filesystem.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-18 17:00:40 +0100
committerDavid Robillard <d@drobilla.net>2020-12-18 17:38:54 +0100
commit189435d25fe03148d4a701e2cd79a931bf26796c (patch)
treeacfc0830a8f9fe13d045bf11e756e32165b460ed /test/test_filesystem.c
parent6f5f98345135d7bc6dd4f8a71d720b9480de6551 (diff)
downloadlilv-189435d25fe03148d4a701e2cd79a931bf26796c.tar.gz
lilv-189435d25fe03148d4a701e2cd79a931bf26796c.tar.bz2
lilv-189435d25fe03148d4a701e2cd79a931bf26796c.zip
Windows: Add test cases for lilv_path_is_absolute()
Diffstat (limited to 'test/test_filesystem.c')
-rw-r--r--test/test_filesystem.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_filesystem.c b/test/test_filesystem.c
index 01ca5ae..4faaf15 100644
--- a/test/test_filesystem.c
+++ b/test/test_filesystem.c
@@ -55,6 +55,13 @@ test_path_is_absolute(void)
assert(!lilv_path_is_absolute("a/b"));
assert(!lilv_path_is_absolute("a"));
assert(!lilv_path_is_absolute("."));
+
+#ifdef _WIN32
+ assert(lilv_path_is_absolute("C:/a/b"));
+ assert(lilv_path_is_absolute("C:\\a\\b"));
+ assert(lilv_path_is_absolute("D:/a/b"));
+ assert(lilv_path_is_absolute("D:\\a\\b"));
+#endif
}
static void