Skip to content

Commit

Permalink
test: re-drop assumption that /run is a mount point, part 2 (#5386)
Browse files Browse the repository at this point in the history
Commit cc39016 only fixed one place, fix the other one too.
  • Loading branch information
martinpitt authored and evverx committed Feb 19, 2017
1 parent 3877500 commit 8dfc2f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/test-stat-util.c
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8dfc2f4

Please sign in to comment.