WEXITSTATUS() is only meaningful if WIFEXITED() was true (see
wait(2)). Check WIFEXITED() with ASSERT, as most tests already do, so
that a signaled child does not also produce a misleading exit status
failure.
Assisted-by: LLM
Signed-off-by: Günther Noack <redacted>