summaryrefslogtreecommitdiffstats
path: root/test/vol.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2018-11-18 06:57:09 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2018-11-18 06:57:09 (GMT)
commit6c99961bb2772dd809ff200bf9a6c456f8e9a1d9 (patch)
tree02e7f1a6f4bab94a89c114472461a4711563b8e1 /test/vol.c
parentd0d360ff2d6afb275836645d01d5d6ddbed39caa (diff)
downloadhdf5-6c99961bb2772dd809ff200bf9a6c456f8e9a1d9.zip
hdf5-6c99961bb2772dd809ff200bf9a6c456f8e9a1d9.tar.gz
hdf5-6c99961bb2772dd809ff200bf9a6c456f8e9a1d9.tar.bz2
Revert some of the changes to support the original property list value of
metadata read attempts.
Diffstat (limited to 'test/vol.c')
-rw-r--r--test/vol.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/vol.c b/test/vol.c
index 38b7e62..357fa45 100644
--- a/test/vol.c
+++ b/test/vol.c
@@ -265,8 +265,19 @@ test_basic_file_operation(void)
* I'm not fighting it, just getting the testing to verify that the VOL
* connector property is returned correctly. -QAK, 2018/11/17
*/
+ /* Set the file close degree to a non-default value, to make the H5Pequal
+ * work out. This is kinda odd, but the library's current behavior with
+ * a default value is to return the value chosen (H5F_CLOSE_SEMI) instead
+ * of the default value (H5F_CLOSE_DEFAULT) from the property and then
+ * the H5Pequal doesn't detect that the property lists are the same. Since
+ * this is the documented behavior for file close degree for many years,
+ * I'm not fighting it, just getting the testing to verify that the VOL
+ * connector property is returned correctly. -QAK, 2018/11/17
+ */
if(H5Pset_fclose_degree(fapl_id, H5F_CLOSE_SEMI) < 0)
TEST_ERROR;
+ if(H5Pset_metadata_read_attempts(fapl_id, 9) < 0)
+ FAIL_STACK_ERROR
/* H5Fcreate */
if ((fid = H5Fcreate(NATIVE_VOL_TEST_FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, fapl_id)) < 0)