]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Made sure that the pth_broadcast test is aborted if it does not complete within 100s.
authorBart Van Assche <bvanassche@acm.org>
Mon, 3 Mar 2008 11:16:33 +0000 (11:16 +0000)
committerBart Van Assche <bvanassche@acm.org>
Mon, 3 Mar 2008 11:16:33 +0000 (11:16 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7545

exp-drd/tests/pth_broadcast.c

index 01111e52d086e49437df77d4ddfe4c0d15d10210..ff1b2c1c100cabad8009bdf811585a475447809d 100644 (file)
@@ -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;