summaryrefslogtreecommitdiffstats
path: root/test/accum.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2018-11-22 07:21:50 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2018-11-22 07:21:50 (GMT)
commit3217ffa1ac0c427aedb2c1cc460484c902b89be2 (patch)
tree21b0ddfbeb9e605237a3c8b78306d68ff65c0648 /test/accum.c
parent340b7a4fb80230d298e652a7bb35344ad6ce049d (diff)
downloadhdf5-3217ffa1ac0c427aedb2c1cc460484c902b89be2.zip
hdf5-3217ffa1ac0c427aedb2c1cc460484c902b89be2.tar.gz
hdf5-3217ffa1ac0c427aedb2c1cc460484c902b89be2.tar.bz2
Add using FAPL from h5_fileaccess() to more tests.
Diffstat (limited to 'test/accum.c')
-rw-r--r--test/accum.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/accum.c b/test/accum.c
index 40829f9..87628d8 100644
--- a/test/accum.c
+++ b/test/accum.c
@@ -91,14 +91,23 @@ main(void)
unsigned nerrors = 0; /* track errors */
hbool_t api_ctx_pushed = FALSE; /* Whether API context pushed */
hid_t fid = -1;
+ hid_t fapl = -1; /* File access property list */
H5F_t * f = NULL; /* File for all tests */
/* Test Setup */
puts("Testing the metadata accumulator");
+ /* File access property list */
+ if((fapl = h5_fileaccess()) < 0)
+ FAIL_STACK_ERROR
+
/* Create a test file */
- if((fid = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR
+ if((fid = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0) FAIL_STACK_ERROR
+
+ /* Closing and remove the file */
+ if(H5Pclose(fapl) < 0)
+ FAIL_STACK_ERROR
/* Push API context */
if(H5CX_push() < 0) FAIL_STACK_ERROR