test: make sure chase_symlink() returns normalized paths

This commit is contained in:
Lennart Poettering
2020-01-28 22:53:59 +01:00
parent 47d7ab727c
commit 3c7b4ebf94
+1
View File
@@ -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);