diff options
author | Jacob Smith <jake.smith@hdfgroup.org> | 2019-01-07 22:58:52 (GMT) |
---|---|---|
committer | Jacob Smith <jake.smith@hdfgroup.org> | 2019-01-07 23:04:50 (GMT) |
commit | 00f835f6403728c3caf298636522e526996010a2 (patch) | |
tree | 985db51b4881a9a6f7cafd19a84bcadd2c28a02b /test/dsets.c | |
parent | d378fad6ea48956e0315efa7c6bb11d444e55ca0 (diff) | |
download | hdf5-00f835f6403728c3caf298636522e526996010a2.zip hdf5-00f835f6403728c3caf298636522e526996010a2.tar.gz hdf5-00f835f6403728c3caf298636522e526996010a2.tar.bz2 |
Fix fapl passed into h5_fixname() calls in minimized tests.
Fix creation of duplicate, unclosed FAPL.
Fix wrong statement-string after TEST_ERROR macro (refactoring mistake).
Diffstat (limited to 'test/dsets.c')
-rw-r--r-- | test/dsets.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/dsets.c b/test/dsets.c index 2634632..9562ec9 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -13059,7 +13059,7 @@ test_versionbounds(void) *----------------------------------------------------------------------------- */ static herr_t -test_object_header_minimization_dcpl(void) +test_object_header_minimization_dcpl(hid_t fapl_id) { hid_t dcpl_id = -1; hid_t file_id = -1; @@ -13073,10 +13073,10 @@ test_object_header_minimization_dcpl(void) /* SETUP */ /*********/ - if(NULL == h5_fixname(OHMIN_FILENAME_A, H5P_DEFAULT, filename, sizeof(filename))) - TEST_ERROR("unable to prepare filename"); + if(NULL == h5_fixname(OHMIN_FILENAME_A, fapl_id, filename, sizeof(filename))) + TEST_ERROR - file_id = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); + file_id = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl_id); if (file_id == H5I_INVALID_HID) TEST_ERROR @@ -13370,7 +13370,7 @@ main(void) /* Tests version bounds using its own file */ nerrors += (test_versionbounds() < 0 ? 1 : 0); - nerrors += (test_object_header_minimization_dcpl() < 0 ? 1 : 0); + nerrors += (test_object_header_minimization_dcpl(fapl) < 0 ? 1 : 0); /* Run misc tests */ nerrors += dls_01_main(); |