Drop /dev test in test-mountpoint-util

Even /dev isn't always guaranteed to be a mount point, so let's drop
this part of the test.
This commit is contained in:
Daan De Meyer
2023-12-22 06:28:01 +09:00
committed by Yu Watanabe
parent 2c6c2b893b
commit bacad14f94
-5
View File
@@ -138,11 +138,6 @@ TEST(path_is_mount_point) {
assert_se(path_is_mount_point("/proc/1/", NULL, AT_SYMLINK_FOLLOW) == 0);
assert_se(path_is_mount_point("/proc/1/", NULL, 0) == 0);
assert_se(path_is_mount_point("/dev", NULL, AT_SYMLINK_FOLLOW) > 0);
assert_se(path_is_mount_point("/dev", NULL, 0) > 0);
assert_se(path_is_mount_point("/dev/", NULL, AT_SYMLINK_FOLLOW) > 0);
assert_se(path_is_mount_point("/dev/", NULL, 0) > 0);
/* we'll create a hierarchy of different kinds of dir/file/link
* layouts:
*