diff --git a/src/test/test-fd-util.c b/src/test/test-fd-util.c index 20cf7b7627b..5817d927252 100644 --- a/src/test/test-fd-util.c +++ b/src/test/test-fd-util.c @@ -389,6 +389,8 @@ TEST(close_all_fds) { test_close_all_fds_inner(); _exit(EXIT_SUCCESS); } + if (ERRNO_IS_NEG_PRIVILEGE(r)) + return (void) log_tests_skipped("Lacking privileges for test in namespace with /proc/ overmounted"); assert_se(r >= 0); if (!is_seccomp_available())