From 4614167ae7b81851d332316d09bd418a062b1278 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 7 Dec 2002 05:39:20 +0000 Subject: Update. * test-skeleton.c (timeout_handler): Allow expected signal to be SIGALRM. --- test-skeleton.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test-skeleton.c') 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)) -- cgit v1.2.3