X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftest%2Ftest-path-util.c;fp=src%2Ftest%2Ftest-path-util.c;h=11aa52aaed51b7e5d307c5fc7a8bcf5ffc2a03bf;hb=bc854dc7cd051e1e5a6ebcca8084b07168051c6c;hp=58b456a29183da7116d40475cf9a0f00b80912b1;hpb=ad2a035820e0fca29e49816f735bec1fcdabf82a;p=elogind.git diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c index 58b456a29..11aa52aae 100644 --- a/src/test/test-path-util.c +++ b/src/test/test-path-util.c @@ -176,13 +176,13 @@ static void test_path_join(void) { test_join("/root", "/a/b", "/c", "/root/a/b/c"); test_join("/root", "a/b", "c", "/root/a/b/c"); test_join("/root", "/a/b", "c", "/root/a/b/c"); - test_join("/root", "/", "c", "/root//c"); + test_join("/root", "/", "c", "/root/c"); test_join("/root", "/", NULL, "/root/"); test_join(NULL, "/a/b", "/c", "/a/b/c"); test_join(NULL, "a/b", "c", "a/b/c"); test_join(NULL, "/a/b", "c", "/a/b/c"); - test_join(NULL, "/", "c", "//c"); + test_join(NULL, "/", "c", "/c"); test_join(NULL, "/", NULL, "/"); }