From: Lennart Poettering Date: Mon, 13 Jan 2025 10:10:09 +0000 (+0100) Subject: test-process-util: don't run rest of test suite in forked off child X-Git-Tag: v258-rc1~1580^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a65de78d5c19264f954cc24b6670f19d18f0c054;p=thirdparty%2Fsystemd.git test-process-util: don't run rest of test suite in forked off child We left the test suite running in the child after forking off a temporary child for testing. That's bad. fix it. --- diff --git a/src/test/test-process-util.c b/src/test/test-process-util.c index 12bac656e20..48c5f44e013 100644 --- a/src/test/test-process-util.c +++ b/src/test/test-process-util.c @@ -1007,7 +1007,7 @@ TEST(pid_get_start_time) { _cleanup_(pidref_done_sigkill_wait) PidRef child = PIDREF_NULL; - ASSERT_OK(pidref_safe_fork("(stub)", FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_REOPEN_LOG, &child)); + ASSERT_OK_POSITIVE(pidref_safe_fork("(stub)", FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_REOPEN_LOG|FORK_FREEZE, &child)); usec_t start_time2; ASSERT_OK(pidref_get_start_time(&child, &start_time2));