From: Lennart Poettering Date: Tue, 28 Jan 2020 21:00:02 +0000 (+0100) Subject: test: make sure chase_symlink() returns normalized paths X-Git-Tag: v245-rc1~63^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c7b4ebf94d167df835c4a5a21b813f803c23b05;p=thirdparty%2Fsystemd.git test: make sure chase_symlink() returns normalized paths --- diff --git a/src/test/test-fs-util.c b/src/test/test-fs-util.c index d5492d937b9..1a5fd56658f 100644 --- a/src/test/test-fs-util.c +++ b/src/test/test-fs-util.c @@ -148,6 +148,7 @@ static void test_chase_symlinks(void) { r = chase_symlinks(p, NULL, 0, &result, NULL); assert_se(r > 0); assert_se(path_equal(result, "/usr")); + assert_se(streq(result, "/usr")); /* we guarantee that we drop redundant slashes */ result = mfree(result); r = chase_symlinks(p, temp, 0, &result, NULL);