1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00

test: add more testcases for prefix_roota()

This commit is contained in:
Yu Watanabe 2019-06-24 23:40:33 +09:00
parent 95bbf19e2f
commit f9421dd847

View File

@ -403,6 +403,9 @@ static void test_prefix_root(void) {
test_prefix_root_one("///", "/foo", "/foo");
test_prefix_root_one("/", "////foo", "/foo");
test_prefix_root_one(NULL, "////foo", "/foo");
test_prefix_root_one("/", "foo", "/foo");
test_prefix_root_one("", "foo", "foo");
test_prefix_root_one(NULL, "foo", "foo");
test_prefix_root_one("/foo", "/bar", "/foo/bar");
test_prefix_root_one("/foo", "bar", "/foo/bar");