From: Bart Van Assche Date: Mon, 3 Mar 2008 11:16:33 +0000 (+0000) Subject: Made sure that the pth_broadcast test is aborted if it does not complete within 100s. X-Git-Tag: svn/VALGRIND_3_4_0~974 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b77e62d9e875c69584e749cfc03b47509326752;p=thirdparty%2Fvalgrind.git Made sure that the pth_broadcast test is aborted if it does not complete within 100s. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7545 --- diff --git a/exp-drd/tests/pth_broadcast.c b/exp-drd/tests/pth_broadcast.c index 01111e52d0..ff1b2c1c10 100644 --- a/exp-drd/tests/pth_broadcast.c +++ b/exp-drd/tests/pth_broadcast.c @@ -124,6 +124,11 @@ int main(int argc, char** argv) break; } } + + /* This test should complete in 15s or less. If the test does not complete */ + /* within that time, abort the test via the signal SIGALRM. */ + alarm(100); + s_signal_count = argc > optind ? atoi(argv[optind]) : 10; thread_count = argc > optind + 1 ? atoi(argv[optind + 1]) : 10;