From 8dfc2f40bf32ffd301f261cc600fd91684616561 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sun, 19 Feb 2017 16:15:06 +0100 Subject: [PATCH] test: re-drop assumption that /run is a mount point, part 2 (#5386) Commit cc3901613 only fixed one place, fix the other one too. --- src/test/test-stat-util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.47.3