summaryrefslogtreecommitdiffstats
path: root/test/accum.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-08-18 20:36:57 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-08-18 20:36:57 (GMT)
commit16093cc00241824a3f595392aaa5aeab53d93b59 (patch)
tree421e39191c5e6d1b4ca1fbbe97e37c597b985335 /test/accum.c
parent3413544b00a5a0c349e8f29dc98562bef287ef9c (diff)
downloadhdf5-16093cc00241824a3f595392aaa5aeab53d93b59.zip
hdf5-16093cc00241824a3f595392aaa5aeab53d93b59.tar.gz
hdf5-16093cc00241824a3f595392aaa5aeab53d93b59.tar.bz2
Merge HD prefix and whitespace changes from develop
Diffstat (limited to 'test/accum.c')
-rw-r--r--test/accum.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/accum.c b/test/accum.c
index 4cef35a..3c308b7 100644
--- a/test/accum.c
+++ b/test/accum.c
@@ -1846,11 +1846,11 @@ test_swmr_write_big(hbool_t newest_format)
* by the environment variable.
*/
driver = HDgetenv("HDF5_DRIVER");
- if (!H5FD_supports_swmr_test(driver)) {
+ if(!H5FD_supports_swmr_test(driver)) {
SKIPPED();
HDputs(" Test skipped due to VFD not supporting SWMR I/O.");
return 0;
- } /* end if */
+ }
/* File access property list */
if((fapl = h5_fileaccess()) < 0)
@@ -1968,14 +1968,15 @@ test_swmr_write_big(hbool_t newest_format)
/* Flush the accumulator */
if(accum_reset(rf) < 0)
FAIL_STACK_ERROR;
- /* Close the property list */
- if(H5Pclose(fapl) < 0)
- FAIL_STACK_ERROR;
/* Close and remove the file */
if(H5Fclose(fid) < 0)
FAIL_STACK_ERROR;
+ /* Close the property list */
+ if(H5Pclose(fapl) < 0)
+ FAIL_STACK_ERROR;
+
/* Pop API context */
if(api_ctx_pushed && H5CX_pop() < 0) FAIL_STACK_ERROR
api_ctx_pushed = FALSE;
@@ -1993,11 +1994,11 @@ test_swmr_write_big(hbool_t newest_format)
error:
/* Closing and remove the file */
- H5Pclose(fapl);
H5Fclose(fid);
if(api_ctx_pushed) H5CX_pop();
+ H5Pclose(fapl);
HDremove(SWMR_FILENAME);
/* Release memory */