From: Luca Boccassi Date: Tue, 9 Sep 2025 22:14:22 +0000 (+0100) Subject: test: exit from test child processes X-Git-Tag: v258~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e52a1acb812b6e80bd8591808cdfe7ba60cce49a;p=thirdparty%2Fsystemd.git test: exit from test child processes Otherwise the child processes will continue, return to the test main function, and try to run other test cases themselves: <...> /* test_namespace_get_leader */ PID hierarchy: 553438 ← 553459 ← 553460 /* test_detach_mount_namespace_harder */ /* test_detach_mount_namespace_harder */ /* test_detach_mount_namespace_harder */ Follow-up for 0b8b13324e652cfc3b9f25dec0cf834705bbb8d0 --- diff --git a/src/test/test-namespace.c b/src/test/test-namespace.c index b301f3ea4bf..4b12e020e28 100644 --- a/src/test/test-namespace.c +++ b/src/test/test-namespace.c @@ -416,7 +416,11 @@ TEST(namespace_get_leader) { ASSERT_TRUE(!pidref_equal(&pid2, &leader)); ASSERT_TRUE(!pidref_equal(&original, &leader)); ASSERT_TRUE(!pidref_equal(&grandparent, &leader)); + + _exit(EXIT_SUCCESS); } + + _exit(EXIT_SUCCESS); } }