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-05-20 14:31:55 (GMT)
commit88920baf539cca052a478eeef4594422ce7e4db9 (patch)
tree28fe9b30ba32d05163a726b709ea342553b58c25 /test
parentb7f27e0381af0ead3eb11112d9f26ccd79d59686 (diff)
downloadhdf5-88920baf539cca052a478eeef4594422ce7e4db9.zip
hdf5-88920baf539cca052a478eeef4594422ce7e4db9.tar.gz
hdf5-88920baf539cca052a478eeef4594422ce7e4db9.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;