From 1d9b73ab80395bfa5974a7e9fd4d99791783ea71 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 21 Nov 2003 18:53:38 +0000 Subject: Update. 2003-11-21 Jakub Jelinek * Makefile (distribute): Add tst-cleanup4aux.c. * tst-cond12.c (prepare): Add prototype. Move after test-skeleton.c include. * tst-cond12.c (do_test): If USE_COND_SIGNAL is defined, use pthread_cond_signal. --- nptl/tst-cond12.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nptl/tst-cond12.c') diff --git a/nptl/tst-cond12.c b/nptl/tst-cond12.c index 256c8a9b9e..769e6b1c92 100644 --- a/nptl/tst-cond12.c +++ b/nptl/tst-cond12.c @@ -152,12 +152,21 @@ do_test (void) p->var = 0; +#ifndef USE_COND_SIGNAL if (pthread_cond_broadcast (&p->c) != 0) { puts ("child: cond_broadcast failed"); kill (getppid (), SIGKILL); exit (1); } +#else + if (pthread_cond_signal (&p->c) != 0) + { + puts ("child: cond_signal failed"); + kill (getppid (), SIGKILL); + exit (1); + } +#endif if (pthread_mutex_unlock (&p->m) != 0) { -- cgit 1.4.1