summaryrefslogtreecommitdiffstats
path: root/test/vol.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-05-04 15:49:01 (GMT)
committerGitHub <noreply@github.com>2022-05-04 15:49:01 (GMT)
commit838d050a63d310a38f92a510dc94c0656a84bb51 (patch)
tree55fe7b05c0408ebf4b28c3bfb5cd9a1d04fb2502 /test/vol.c
parent19a59c29b93c04ae069881da2354d3d7048619b9 (diff)
downloadhdf5-838d050a63d310a38f92a510dc94c0656a84bb51.zip
hdf5-838d050a63d310a38f92a510dc94c0656a84bb51.tar.gz
hdf5-838d050a63d310a38f92a510dc94c0656a84bb51.tar.bz2
h5test.h testing macros get enclosed in do..while loops (#1721)
* h5test.h testing macros get enclosed in do..while loops * Adds missed macro in hl C++ code * Fixes macro in Windows code
Diffstat (limited to 'test/vol.c')
-rw-r--r--test/vol.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/vol.c b/test/vol.c
index aba9311..52758f3 100644
--- a/test/vol.c
+++ b/test/vol.c
@@ -794,7 +794,7 @@ test_basic_file_operation(const char *env_h5_drvr)
if (H5Pset_fclose_degree(fapl_id, H5F_CLOSE_SEMI) < 0)
TEST_ERROR;
if (H5Pset_metadata_read_attempts(fapl_id, 9) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* H5Fcreate */
if ((fid = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl_id)) < 0)
@@ -1987,11 +1987,11 @@ test_async_vol_props(void)
conn_env_str = HDgetenv(HDF5_VOL_CONNECTOR);
if (conn_env_str) {
if (NULL == (conn_env_str = HDstrdup(conn_env_str)))
- TEST_ERROR
+ TEST_ERROR;
if (HDunsetenv(HDF5_VOL_CONNECTOR) < 0)
- TEST_ERROR
+ TEST_ERROR;
if (H5VL__reparse_def_vol_conn_variable_test() < 0)
- TEST_ERROR
+ TEST_ERROR;
} /* end if */
/* Test query w/default VOL, which should indicate no async, since native connector
@@ -2000,9 +2000,9 @@ test_async_vol_props(void)
if (H5Pget_vol_cap_flags(fapl_id, &cap_flags) < 0)
FAIL_STACK_ERROR;
if ((cap_flags & H5VL_CAP_FLAG_ASYNC) > 0)
- TEST_ERROR
+ TEST_ERROR;
if ((cap_flags & H5VL_CAP_FLAG_NATIVE_FILES) == 0)
- TEST_ERROR
+ TEST_ERROR;
/* Close FAPL */
if (H5Pclose(fapl_id) < 0)
@@ -2014,9 +2014,9 @@ test_async_vol_props(void)
/* Set environment variable to use 'fake async' connector & re-init default connector */
if (HDsetenv(HDF5_VOL_CONNECTOR, "fake_async", TRUE) < 0)
- TEST_ERROR
+ TEST_ERROR;
if (H5VL__reparse_def_vol_conn_variable_test() < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Retrieve the file access property again */
fapl_id = h5_fileaccess();
@@ -2026,15 +2026,15 @@ test_async_vol_props(void)
if (H5Pget_vol_cap_flags(fapl_id, &cap_flags) < 0)
FAIL_STACK_ERROR;
if ((cap_flags & H5VL_CAP_FLAG_ASYNC) == 0)
- TEST_ERROR
+ TEST_ERROR;
if ((cap_flags & H5VL_CAP_FLAG_NATIVE_FILES) > 0)
- TEST_ERROR
+ TEST_ERROR;
/* Reset environment variable & re-init default connector */
if (HDunsetenv(HDF5_VOL_CONNECTOR) < 0)
- TEST_ERROR
+ TEST_ERROR;
if (H5VL__reparse_def_vol_conn_variable_test() < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Close FAPL */
if (H5Pclose(fapl_id) < 0)
@@ -2052,9 +2052,9 @@ test_async_vol_props(void)
if (H5Pget_vol_cap_flags(fapl_id, &cap_flags) < 0)
FAIL_STACK_ERROR;
if ((cap_flags & H5VL_CAP_FLAG_ASYNC) == 0)
- TEST_ERROR
+ TEST_ERROR;
if ((cap_flags & H5VL_CAP_FLAG_NATIVE_FILES) > 0)
- TEST_ERROR
+ TEST_ERROR;
/* Stack the [internal] passthrough VOL connector on top of the fake async connector */
passthru_info.under_vol_id = vol_id;
@@ -2067,9 +2067,9 @@ test_async_vol_props(void)
if (H5Pget_vol_cap_flags(fapl_id, &cap_flags) < 0)
FAIL_STACK_ERROR;
if ((cap_flags & H5VL_CAP_FLAG_ASYNC) == 0)
- TEST_ERROR
+ TEST_ERROR;
if ((cap_flags & H5VL_CAP_FLAG_NATIVE_FILES) > 0)
- TEST_ERROR
+ TEST_ERROR;
/* Unregister the fake async VOL ID */
if (H5VLunregister_connector(vol_id) < 0)
@@ -2082,11 +2082,11 @@ test_async_vol_props(void)
/* Restore environment variable, if there was one */
if (conn_env_str) {
if (HDsetenv(HDF5_VOL_CONNECTOR, conn_env_str, TRUE) < 0)
- TEST_ERROR
+ TEST_ERROR;
HDfree(conn_env_str);
if (H5VL__reparse_def_vol_conn_variable_test() < 0)
- TEST_ERROR
+ TEST_ERROR;
} /* end if */
PASSED();