summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-12 17:54:31 -0500
committerDavid Robillard <d@drobilla.net>2022-11-16 10:22:55 -0500
commit9d5c526e264e2fe13f8b579528da21b54c65ab9e (patch)
tree4f42f501df44ca91c5669515888079355d99c7c7 /test
parent07a05e6edbf20016836a7c47d8cb8102fbfed86b (diff)
downloadlilv-9d5c526e264e2fe13f8b579528da21b54c65ab9e.tar.gz
lilv-9d5c526e264e2fe13f8b579528da21b54c65ab9e.tar.bz2
lilv-9d5c526e264e2fe13f8b579528da21b54c65ab9e.zip
Use zix_path_lexically_relative()
Diffstat (limited to 'test')
-rw-r--r--test/test_filesystem.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/test_filesystem.c b/test/test_filesystem.c
index 4ed1d5e..99e4f3c 100644
--- a/test/test_filesystem.c
+++ b/test/test_filesystem.c
@@ -38,29 +38,6 @@ test_path_is_child(void)
}
static void
-test_path_relative_to(void)
-{
- assert(equals(lilv_path_relative_to("/a/b", "/a/"), "b"));
- assert(equals(lilv_path_relative_to("/a", "/b/c/"), "/a"));
- assert(equals(lilv_path_relative_to("/a/b/c", "/a/b/d/"), "../c"));
- assert(equals(lilv_path_relative_to("/a/b/c", "/a/b/d/e/"), "../../c"));
-
-#ifdef _WIN32
- assert(equals(lilv_path_relative_to("C:/a/b", "C:/a/"), "b"));
- assert(equals(lilv_path_relative_to("C:/a", "C:/b/c/"), "../../a"));
- assert(equals(lilv_path_relative_to("C:/a/b/c", "C:/a/b/d/"), "../c"));
- assert(equals(lilv_path_relative_to("C:/a/b/c", "C:/a/b/d/e/"), "../../c"));
-
- assert(equals(lilv_path_relative_to("C:\\a\\b", "C:\\a\\"), "b"));
- assert(equals(lilv_path_relative_to("C:\\a", "C:\\b\\c\\"), "..\\..\\a"));
- assert(
- equals(lilv_path_relative_to("C:\\a\\b\\c", "C:\\a\\b\\d\\"), "..\\c"));
- assert(equals(lilv_path_relative_to("C:\\a\\b\\c", "C:\\a\\b\\d\\e\\"),
- "..\\..\\c"));
-#endif
-}
-
-static void
test_path_parent(void)
{
assert(equals(lilv_path_parent("/"), "/"));
@@ -102,7 +79,6 @@ int
main(void)
{
test_path_is_child();
- test_path_relative_to();
test_path_parent();
test_path_filename();