Author: bart
Date: 2008-03-03 11:16:33 +0000 (Mon, 03 Mar 2008)
New Revision: 7545

Log:
Made sure that the pth_broadcast test is aborted if it does not complete within 
100s.

Modified:
   trunk/exp-drd/tests/pth_broadcast.c


Modified: trunk/exp-drd/tests/pth_broadcast.c
===================================================================
--- trunk/exp-drd/tests/pth_broadcast.c 2008-03-03 07:40:54 UTC (rev 7544)
+++ trunk/exp-drd/tests/pth_broadcast.c 2008-03-03 11:16:33 UTC (rev 7545)
@@ -124,6 +124,11 @@
       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;
 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Valgrind-developers mailing list
Valgrind-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-developers

Reply via email to