pid_threaded = spawn (tests_threaded, NULL, NULL, -1);
pid_threaded_got = waitpid (pid_threaded, &status, 0);
assert (pid_threaded_got == pid_threaded);
- assert (WIFEXITED (status) && WEXITSTATUS (status) == 0);
+ assert (!WIFSIGNALED (status)); /* Improve readability in the failed case. */
+ assert (!WIFSTOPPED (status)); /* Improve readability in the failed case. */
+ assert (WIFEXITED (status));
+ assert (WEXITSTATUS (status) == 0);
STATE (pid_threaded, 1 << STATE_ENOENT);
registry_remove (pid_threaded);