diff options
Diffstat (limited to 'test-skeleton.c')
-rw-r--r-- | test-skeleton.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test-skeleton.c b/test-skeleton.c index a285478ae8..2b5102ba91 100644 --- a/test-skeleton.c +++ b/test-skeleton.c @@ -145,6 +145,12 @@ timeout_handler (int sig __attribute__ ((unused))) CLEANUP_HANDLER; #endif + /* If we expected this signal: good! */ +#ifdef EXPECTED_SIGNAL + if (EXPECTED_SIGNAL == SIGALRM) + exit (0); +#endif + if (WIFSIGNALED (status) && WTERMSIG (status) == SIGKILL) fputs ("Timed out: killed the child process\n", stderr); else if (WIFSTOPPED (status)) |