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:
Martin Pitt
2017-02-19 16:15:06 +01:00
committed by Evgeny Vereshchagin
parent 3877500c5b
commit 8dfc2f40bf

View 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);
}