summaryrefslogtreecommitdiff
path: root/tests/condvar8.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/condvar8.c')
-rw-r--r--tests/condvar8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/condvar8.c b/tests/condvar8.c
index 4d28f6a..2ab67b3 100644
--- a/tests/condvar8.c
+++ b/tests/condvar8.c
@@ -205,10 +205,10 @@ main()
cvthing.shared++;
- assert(pthread_mutex_unlock(&cvthing.lock) == 0);
-
assert(pthread_cond_broadcast(&cvthing.notbusy) == 0);
+ assert(pthread_mutex_unlock(&cvthing.lock) == 0);
+
/*
* Give threads time to complete.
*/