]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-stat-util.c
test: re-drop assumption that /run is a mount point, part 2 (#5386)
[thirdparty/systemd.git] / src / test / test-stat-util.c
index 28ca6bc3177e88306944b7d57b1df56d66ed4874..3ff2aadea48fe404304e61cbf52047d0a8bfa5d8 100644 (file)
@@ -82,7 +82,9 @@ static void test_path_check_fstype(void) {
 }
 
 static void test_path_is_temporary_fs(void) {
-        assert_se(path_is_temporary_fs("/run") > 0);
+        /* run might not be a mount point in build chroots */
+        if (path_is_mount_point("/run", NULL, AT_SYMLINK_FOLLOW) > 0)
+                assert_se(path_is_temporary_fs("/run") > 0);
         assert_se(path_is_temporary_fs("/proc") == 0);
         assert_se(path_is_temporary_fs("/i-dont-exist") == -ENOENT);
 }