path-util: fix more path_is_mount e792e890f fallout

This commit is contained in:
Lennart Poettering 2015-04-07 16:03:45 +02:00
parent 2c0223282d
commit da00518b3f
4 changed files with 16 additions and 10 deletions

View file

@ -86,8 +86,14 @@ static void test_path(void) {
test_parent("/aa///file...", "/aa///");
test_parent("file.../", NULL);
assert_se(path_is_mount_point("/", true));
assert_se(path_is_mount_point("/", false));
assert_se(path_is_mount_point("/", true) > 0);
assert_se(path_is_mount_point("/", false) > 0);
assert_se(path_is_mount_point("/proc", true) > 0);
assert_se(path_is_mount_point("/proc", false) > 0);
assert_se(path_is_mount_point("/sys", true) > 0);
assert_se(path_is_mount_point("/sys", false) > 0);
{
char p1[] = "aaa/bbb////ccc";