X-Git-Url: http://git.jankratochvil.net/?p=debugger.git;a=blobdiff_plain;f=testsuite.c;fp=testsuite.c;h=fce7c791c4e88984be7c4c9111d1516d32282a9a;hp=065d0a9683e0cdcdd7c0d4144c0ef9c827684d8b;hb=cc37c1111d15153e6bf397f0692fdfba1949fa4d;hpb=4c808c490fc4ee6db5d7d060656a9ab2be70a094 diff --git a/testsuite.c b/testsuite.c index 065d0a9..fce7c79 100644 --- a/testsuite.c +++ b/testsuite.c @@ -584,7 +584,10 @@ int main (int argc, char **argv) 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);