diff options
author | vchoi <vchoi@jelly.ad.hdfgroup.org> | 2021-02-02 22:01:35 (GMT) |
---|---|---|
committer | vchoi <vchoi@jelly.ad.hdfgroup.org> | 2021-02-02 22:01:35 (GMT) |
commit | d8e77f13be0b849fdadedf2fb4689eb2ce04aaeb (patch) | |
tree | cdc33e6b5dae4d920ab8ef7b5f8691a8d36a13a1 /test/vfd_swmr_vlstr_reader.c | |
parent | 592f8b738eb3fbab9805f2bf2ed9130539a6663b (diff) | |
download | hdf5-d8e77f13be0b849fdadedf2fb4689eb2ce04aaeb.zip hdf5-d8e77f13be0b849fdadedf2fb4689eb2ce04aaeb.tar.gz hdf5-d8e77f13be0b849fdadedf2fb4689eb2ce04aaeb.tar.bz2 |
(1) Add new routine to configure for VFD SWMR: init_vfd_swmr_config()
(2) Revise routine to setup fapl for VFD SWMR legacy and other integration tests: vfd_swmr_create_fapl()
(3) Update all VFD SWMR integration tests to use the above two routines
(4) Clean up VFD SWMR legacy tests: turn on compression in test script, remove #ifdef OUT H5Fflush(), message file name
Diffstat (limited to 'test/vfd_swmr_vlstr_reader.c')
-rw-r--r-- | test/vfd_swmr_vlstr_reader.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/vfd_swmr_vlstr_reader.c b/test/vfd_swmr_vlstr_reader.c index e78f36b..e75af35 100644 --- a/test/vfd_swmr_vlstr_reader.c +++ b/test/vfd_swmr_vlstr_reader.c @@ -94,6 +94,7 @@ main(int argc, char **argv) const struct timespec delay = {.tv_sec = 0, .tv_nsec = millisec_in_nanosecs * 11 / 10}; testsel_t sel = TEST_NONE; + H5F_vfd_swmr_config_t config; assert(H5T_C_S1 != badhid); @@ -135,8 +136,12 @@ main(int argc, char **argv) if (argc > 0) errx(EXIT_FAILURE, "unexpected command-line arguments"); - fapl = vfd_swmr_create_fapl(false, sel == TEST_OOB, use_vfd_swmr, - "./vlstr-shadow"); + /* config, tick_len, max_lag, writer, flush_raw_data, md_pages_reserved, md_file_path */ + init_vfd_swmr_config(&config, 4, 7, false, FALSE, 128, "./vlstr-shadow"); + + /* use_latest_format, use_vfd_swmr, only_meta_page, config */ + fapl = vfd_swmr_create_fapl(true, use_vfd_swmr, sel == TEST_OOB, &config); + if (fapl < 0) errx(EXIT_FAILURE, "vfd_swmr_create_fapl"); |