]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Drop /dev test in test-mountpoint-util
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 21 Dec 2023 18:46:54 +0000 (19:46 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 21 Dec 2023 21:28:01 +0000 (06:28 +0900)
Even /dev isn't always guaranteed to be a mount point, so let's drop
this part of the test.

src/test/test-mountpoint-util.c

index 5dcec9658d53aa7e92b371eea6edb3b6d2120409..40b12dd0880724cb4f0faf7481be391f9d6e8461 100644 (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:
          *