diff options
author | vchoi <vchoi@jelly.ad.hdfgroup.org> | 2021-06-10 16:46:28 (GMT) |
---|---|---|
committer | vchoi <vchoi@jelly.ad.hdfgroup.org> | 2021-06-10 16:46:28 (GMT) |
commit | a1647afd6030b43049c8f6929c70537e3016ab7c (patch) | |
tree | 7f8e9fccd8509d9a80f15619601989dd5c5546c3 /test/swmr_common.c | |
parent | 3da740a5b8d1f37a5a1492c1defffc609f6c8aba (diff) | |
download | hdf5-a1647afd6030b43049c8f6929c70537e3016ab7c.zip hdf5-a1647afd6030b43049c8f6929c70537e3016ab7c.tar.gz hdf5-a1647afd6030b43049c8f6929c70537e3016ab7c.tar.bz2 |
Reduce running time and verbosity for VFD SWMR tests.
(1) Change choose_dataset() to print out related info based on verbosity.
(2) Modify all routines in legacy and VFD SWMR tests that call choose_dataset().
(3) Modify testvfdswmr.sh.in to run tests based on HDF5TestExpress setting so as to reduce running time.
Diffstat (limited to 'test/swmr_common.c')
-rw-r--r-- | test/swmr_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/swmr_common.c b/test/swmr_common.c index d59f7a7..46c80cf 100644 --- a/test/swmr_common.c +++ b/test/swmr_common.c @@ -97,7 +97,7 @@ char VDS_DSET_NAME[NAME_LEN] = "vds_dset"; *------------------------------------------------------------------------- */ symbol_info_t * -choose_dataset(unsigned *levelp, unsigned *offsetp) +choose_dataset(unsigned *levelp, unsigned *offsetp, hbool_t verbose) { static unsigned ncalls = 0; unsigned level; /* The level of the dataset */ @@ -110,7 +110,7 @@ choose_dataset(unsigned *levelp, unsigned *offsetp) offset = (unsigned)(HDrandom() % (int)symbol_count[level]); ++ncalls; - if ((ncalls % 1000) == 0) { + if ((ncalls % 1000) == 0 && verbose) { fprintf(stderr, "%s: call %u chose level %u offset %u\n", __func__, ncalls, level, offset); } if (levelp != NULL) |