Improve readability in the failed case.
authorlace <>
Fri, 15 Jun 2007 09:15:18 +0000 (09:15 +0000)
committerlace <>
Fri, 15 Jun 2007 09:15:18 +0000 (09:15 +0000)
testsuite.c

index 065d0a9..fce7c79 100644 (file)
@@ -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);