diff options
author | David Young <dyoung@hdfgroup.org> | 2020-08-03 20:00:25 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-08-03 20:00:25 (GMT) |
commit | 316aa34bacba01f84748eeaf011a3e2f2d4aac7a (patch) | |
tree | 9e912c405e4cec370c3a3625cb0f4c516406a2e5 /src | |
parent | 20a6b825972ef359c33fcd2e79177b812696f14c (diff) | |
download | hdf5-316aa34bacba01f84748eeaf011a3e2f2d4aac7a.zip hdf5-316aa34bacba01f84748eeaf011a3e2f2d4aac7a.tar.gz hdf5-316aa34bacba01f84748eeaf011a3e2f2d4aac7a.tar.bz2 |
Make tests pass on both of my branches, like they ought to: in the tests that
call H5F__vfd_swmr_writer_md_test(), actually sleep for more than `max_lag`
ticks so that the deferred-frees queue is actually flushed before we force new
items onto the queue and count them.
In H5F__vfd_swmr_writer_md_test(), check that the number of deferred
shadow-space frees is *precisely* the number `nshadow_defrees`, since that
seems to be what the tests that call this routine intend.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Ftest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Ftest.c b/src/H5Ftest.c index ced4b2c..f249d45 100644 --- a/src/H5Ftest.c +++ b/src/H5Ftest.c @@ -581,7 +581,7 @@ H5F__vfd_swmr_writer_md_test(hid_t file_id, unsigned num_entries, HGOTO_ERROR(H5E_FILE, H5E_CANTALLOC, FAIL, "error updating the md file with the index") /* Verify the number of entries in the delayed list is as expected */ - if(count_shadow_defrees(&f->shared->shadow_defrees) < nshadow_defrees) + if(count_shadow_defrees(&f->shared->shadow_defrees) == nshadow_defrees) HGOTO_ERROR(H5E_FILE, H5E_BADVALUE, FAIL, "incorrect # of entries in the delayed list") /* Open the metadata file */ |