From: Martin Pitt Date: Sun, 19 Feb 2017 15:15:06 +0000 (+0100) Subject: test: re-drop assumption that /run is a mount point, part 2 (#5386) X-Git-Tag: v233~68 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8dfc2f40bf32ffd301f261cc600fd91684616561;p=thirdparty%2Fsystemd.git test: re-drop assumption that /run is a mount point, part 2 (#5386) Commit cc3901613 only fixed one place, fix the other one too. --- diff --git a/src/test/test-stat-util.c b/src/test/test-stat-util.c index 28ca6bc3177..3ff2aadea48 100644 --- a/src/test/test-stat-util.c +++ b/src/test/test-stat-util.c @@ -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); }