From: Bart Van Assche Date: Mon, 3 Mar 2008 17:37:24 +0000 (+0000) Subject: The pth_broadcast test program now prints a message when finished such that the diffe... X-Git-Tag: svn/VALGRIND_3_4_0~972 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c76b65230416a62941bc0a6f0a7b47923f709b4;p=thirdparty%2Fvalgrind.git The pth_broadcast test program now prints a message when finished such that the difference between successful completion and termination because of SIGALRM can be detected. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7547 --- diff --git a/exp-drd/tests/pth_broadcast.c b/exp-drd/tests/pth_broadcast.c index ff1b2c1c10..a2ddcfd905 100644 --- a/exp-drd/tests/pth_broadcast.c +++ b/exp-drd/tests/pth_broadcast.c @@ -1,8 +1,9 @@ -// Broadcast a (POSIX threads) signal to all running threads, where the -// number of threads can be specified on the command line. This test program -// is intended not only to test the correctness of drd but also to test -// whether performance does not degrade too much when the number of threads -// increases. +/** Broadcast a (POSIX threads) signal to all running threads, where the + * number of threads can be specified on the command line. This test program + * is intended not only to test the correctness of drd but also to test + * whether performance does not degrade too much when the number of threads + * increases. + */ #include @@ -176,5 +177,8 @@ int main(int argc, char** argv) } pthread_cond_destroy(&s_cond); pthread_mutex_destroy(&s_mutex); + + fprintf(stderr, "Done.\n"); + return 0; } diff --git a/exp-drd/tests/pth_broadcast.stderr.exp b/exp-drd/tests/pth_broadcast.stderr.exp index d18786f806..d16127fb58 100644 --- a/exp-drd/tests/pth_broadcast.stderr.exp +++ b/exp-drd/tests/pth_broadcast.stderr.exp @@ -1,3 +1,4 @@ +Done. ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)