From 0c76b65230416a62941bc0a6f0a7b47923f709b4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 3 Mar 2008 17:37:24 +0000 Subject: [PATCH] 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 --- exp-drd/tests/pth_broadcast.c | 14 +++++++++----- exp-drd/tests/pth_broadcast.stderr.exp | 1 + 2 files changed, 10 insertions(+), 5 deletions(-) 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) -- 2.47.3