(main): Fix test for exit signal.
authordrepper <drepper>
Mon, 23 Mar 1998 10:51:09 +0000 (10:51 +0000)
committerdrepper <drepper>
Mon, 23 Mar 1998 10:51:09 +0000 (10:51 +0000)
test-skeleton.c

index 418f69a..5bb5c44 100644 (file)
@@ -164,11 +164,10 @@ main (int argc, char *argv[])
   /* We don't expect any signal.  */
 # define EXPECTED_SIGNAL 0
 #endif
-  if (WIFSIGNALED (status) != EXPECTED_SIGNAL)
+  if (WTERMSIG (status) != EXPECTED_SIGNAL)
     {
       fprintf (stderr, "Incorrect signal from child: got `%s', need `%s'\n",
-              strsignal (WIFSIGNALED (status)),
-              strsignal (EXPECTED_SIGNAL));
+              strsignal (WTERMSIG (status)), strsignal (EXPECTED_SIGNAL));
       exit (1);
     }