aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test-skeleton.c')
-rw-r--r--test-skeleton.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test-skeleton.c b/test-skeleton.c
index 418f69abdd..5bb5c44c16 100644
--- a/test-skeleton.c
+++ b/test-skeleton.c
@@ -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);
}