From e52a1acb812b6e80bd8591808cdfe7ba60cce49a Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 9 Sep 2025 23:14:22 +0100 Subject: [PATCH] test: exit from test child processes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/test/test-namespace.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } } -- 2.47.3