chiark / gitweb /
path-util: make path_make_relative() support path including dots
[elogind.git] / src / test / test-path-util.c
index 80bca48e02791c927548d25076dd33137855b1de..d0f7a5772fb7a99132e1d68d0f6cf7e709dc7e74 100644 (file)
@@ -287,7 +287,7 @@ static void test_make_relative(void) {
         test("/some/path", "/", "../..");
         test("/some/path", "/some/other/path", "../other/path");
         test("/some/path/./dot", "/some/further/path", "../../further/path");
-        test("//extra/////slashes///won't////fool///anybody//", "////extra///slashes////are/just///fine///", "../../../are/just/fine");
+        test("//extra.//.//./.slashes//./won't////fo.ol///anybody//", "/././/extra././/.slashes////ar.e/.just/././.fine///", "../../../ar.e/.just/.fine");
 }
 #endif // 0