summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-06-03 16:54:32 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-06-03 16:54:32 +0200
commit48054262798c0feb70b0044091105020bb5d1bfc (patch)
treed7fe02c6c608ee625a4a37b5f6142ecbe549c7ac /src/test
parentpath-util: introduce path_simplify() (diff)
downloadsystemd-48054262798c0feb70b0044091105020bb5d1bfc.tar.xz
systemd-48054262798c0feb70b0044091105020bb5d1bfc.zip
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 d963d1ccbb..454d27accd 100644
--- a/src/test/test-path-util.c
+++ b/src/test/test-path-util.c
@@ -286,7 +286,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");
}
static void test_strv_resolve(void) {