From: Daan De Meyer Date: Thu, 21 Dec 2023 18:46:54 +0000 (+0100) Subject: Drop /dev test in test-mountpoint-util X-Git-Tag: v256-rc1~1429 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bacad14f94a4e98c3e81d821c56dbe7e2e4726ff;p=thirdparty%2Fsystemd.git 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. --- diff --git a/src/test/test-mountpoint-util.c b/src/test/test-mountpoint-util.c index 5dcec9658d5..40b12dd0880 100644 --- a/src/test/test-mountpoint-util.c +++ b/src/test/test-mountpoint-util.c @@ -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: *