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:
parent
95bbf19e2f
commit
f9421dd847
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user