summaryrefslogtreecommitdiffstats
path: root/src/H5Ftest.c
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2019-01-31 17:47:43 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2019-01-31 17:47:43 (GMT)
commit311e4ed32de7fead9d6c26d962fdfbd00222ce2b (patch)
treed4cb5c0b374a38fa66763397a4b42ea7b1f21c61 /src/H5Ftest.c
parent6feabcb42d55c1b47fa011ae915746834c3984b9 (diff)
downloadhdf5-311e4ed32de7fead9d6c26d962fdfbd00222ce2b.zip
hdf5-311e4ed32de7fead9d6c26d962fdfbd00222ce2b.tar.gz
hdf5-311e4ed32de7fead9d6c26d962fdfbd00222ce2b.tar.bz2
Modifications to the vfd swmr concurrent tests:
(1) Increase the # of records to write (Nrecords) in testvfdswmr.sh.in so as to ensure the writer will not exit before the reader (2) Use H5E_BEGIN_TRY/END_TRY when H5Fopen() the test file in reader tests (3) Add "READER" or "WRITER" to debugging messages (4) Misc cleanup
Diffstat (limited to 'src/H5Ftest.c')
-rw-r--r--src/H5Ftest.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/H5Ftest.c b/src/H5Ftest.c
index 46878ba..fb262e4 100644
--- a/src/H5Ftest.c
+++ b/src/H5Ftest.c
@@ -564,15 +564,11 @@ H5F__vfd_swmr_writer_md_test(hid_t file_id, unsigned num_entries, H5FD_vfd_swmr_
if(H5F_update_vfd_swmr_metadata_file(f, num_entries, index) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTALLOC, FAIL, "error updating the md file with the index")
+ printf("Delayed list num entries: f->shared->dl_len = %u, num_dl_entries=%u\n", f->shared->dl_len, num_dl_entries);
+
/* Verify the number of entries in the delayed list is as expected */
-#ifdef OUT
- if(f->shared->dl_len != num_dl_entries)
+ if(f->shared->dl_len < num_dl_entries)
HGOTO_ERROR(H5E_FILE, H5E_BADVALUE, FAIL, "incorrect # of entries in the delayed list")
-#endif
- if(f->shared->dl_len != num_dl_entries)
- printf("DIFFERENT: f->shared->dl_len = %u, num_dl_entries=%u\n", f->shared->dl_len, num_dl_entries);
- else
- printf("SAME: f->shared->dl_len = %u, num_dl_entries=%u\n", f->shared->dl_len, num_dl_entries);
/* Open the metadata file */
if((md_fd = HDopen(f->shared->vfd_swmr_config.md_file_path, O_RDONLY)) < 0)