about summary refs log tree commit diff
path: root/nptl/tst-cond12.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-cond12.c')
-rw-r--r--nptl/tst-cond12.c9
1 files changed, 9 insertions, 0 deletions
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)
 	{