A failed ASSERT in a forked child calls abort(), so the parent sees
the child die from a signal and the test fails. A failed EXPECT only
sets _metadata->exit_code, and a child that exits with a fixed status
of 0 hides that failure from the parent. The child in
trace_fown.deny_scope_fown has this problem.
Exit with _metadata->exit_code in that child. Do the same in the
audit.log_subdomains_off_fork children. They only use ASSERT for now,
but this keeps them correct when a check becomes an EXPECT.
Signed-off-by: Günther Noack <redacted>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-selftests-refactor-v2-0-c52f23f7ce33@gmail.com?part=2