summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-06-03 23:54:32 +0900
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit88272c0fe5aca0bcdb60aeb1b4d5f4cf1c9a47b4 (patch)
treede0d36bd6c1e7c4398714dd1878ed304caa69388 /src/test
parent7851cfbcac23fc8c8e167c3691a1f63fd277fa1a (diff)
path-util: make path_make_relative() support path including dots
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-path-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c
index 80bca48e0..d0f7a5772 100644
--- a/src/test/test-path-util.c
+++ b/src/test/test-path-util.c
@@ -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