mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 17:06:39 +09:00
test: re-drop assumption that /run is a mount point, part 2 (#5386)
Commit cc3901613 only fixed one place, fix the other one too.
This commit is contained in:
committed by
Evgeny Vereshchagin
parent
3877500c5b
commit
8dfc2f40bf
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user