summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-27 16:17:24 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-02-27 16:17:24 (GMT)
commit11d22f3ea50d45796e110fe805a694692de91456 (patch)
treeb64b598b80362b8ce602140a0ea8e61d4911cf5d /test
parent802bf2dc1eca3c3fd4f3f2cbc90c9c40c6d94607 (diff)
downloadhdf5-11d22f3ea50d45796e110fe805a694692de91456.zip
hdf5-11d22f3ea50d45796e110fe805a694692de91456.tar.gz
hdf5-11d22f3ea50d45796e110fe805a694692de91456.tar.bz2
Test the right condition for the EBUSY return in pthread_barrier_destroy().
Diffstat (limited to 'test')
-rw-r--r--test/thread_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/thread_id.c b/test/thread_id.c
index 84676bf..49e3710 100644
--- a/test/thread_id.c
+++ b/test/thread_id.c
@@ -122,7 +122,7 @@ pthread_barrier_destroy(pthread_barrier_t *barrier)
barrier_lock(barrier);
if (barrier->magic != barrier_magic)
rc = EINVAL;
- else if (barrier->count != 0)
+ else if (barrier->nentered % barrier->count != 0)
rc = EBUSY;
else {
rc = 0;