path-util: fix more path_is_mount e792e890f
fallout
This commit is contained in:
parent
2c0223282d
commit
da00518b3f
4 changed files with 16 additions and 10 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue