aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-07 05:39:20 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-07 05:39:20 +0000
commit4614167ae7b81851d332316d09bd418a062b1278 (patch)
treea32a0bc349fefef43b30ed752cb9ab52bcf2cce8 /test-skeleton.c
parentUpdate. (diff)
downloadglibc-4614167ae7b81851d332316d09bd418a062b1278.tar.gz
glibc-4614167ae7b81851d332316d09bd418a062b1278.tar.bz2
glibc-4614167ae7b81851d332316d09bd418a062b1278.zip
Update.
* test-skeleton.c (timeout_handler): Allow expected signal to be SIGALRM.
Diffstat (limited to 'test-skeleton.c')
-rw-r--r--test-skeleton.c6
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))