summaryrefslogtreecommitdiffstats
path: root/tools/libtest/h5tools_test_utils.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 14:31:56 (GMT)
committerGitHub <noreply@github.com>2023-06-28 14:31:56 (GMT)
commit7a44581a84778a1346a2fd5b6cca7d9db905a321 (patch)
tree44ea9c2d1b471eb227698abe8499c34cfa6d47d2 /tools/libtest/h5tools_test_utils.c
parent622fcbd13881fbc58bbeaed3062583b759f5e864 (diff)
downloadhdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.zip
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.gz
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.bz2
Rename HDassert() to assert() (#3191)
* Change HDassert to assert * Fix bin/make_err
Diffstat (limited to 'tools/libtest/h5tools_test_utils.c')
-rw-r--r--tools/libtest/h5tools_test_utils.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/libtest/h5tools_test_utils.c b/tools/libtest/h5tools_test_utils.c
index f060e2c..5fc5dc1 100644
--- a/tools/libtest/h5tools_test_utils.c
+++ b/tools/libtest/h5tools_test_utils.c
@@ -532,8 +532,8 @@ test_parse_tuple(void)
/* SETUP
*/
- HDassert(parsed == NULL);
- HDassert(cpy == NULL);
+ assert(parsed == NULL);
+ assert(cpy == NULL);
tc = cases[i];
if (show_progress == TRUE) {
HDprintf("testing %d: %s...\n", i, tc.test_msg);
@@ -551,8 +551,8 @@ test_parse_tuple(void)
JSVERIFY_STR(tc.exp_elems[elem_i], parsed[elem_i], NULL)
}
/* TEARDOWN */
- HDassert(parsed != NULL);
- HDassert(cpy != NULL);
+ assert(parsed != NULL);
+ assert(cpy != NULL);
HDfree(parsed);
parsed = NULL;
HDfree(cpy);
@@ -623,7 +623,7 @@ test_populate_ros3_fa(void)
show_progress = TRUE;
#endif /* H5TOOLS_UTILS_TEST_DEBUG */
- HDassert(bad_version != H5FD_CURR_ROS3_FAPL_T_VERSION);
+ assert(bad_version != H5FD_CURR_ROS3_FAPL_T_VERSION);
/*********
* TESTS *
@@ -747,7 +747,7 @@ test_populate_ros3_fa(void)
HDprintf("region overflow\n");
}
- HDassert(HDstrlen(values[0]) > H5FD_ROS3_MAX_REGION_LEN);
+ assert(HDstrlen(values[0]) > H5FD_ROS3_MAX_REGION_LEN);
JSVERIFY(0, h5tools_populate_ros3_fapl(&fa, values), "could not fill fapl")
JSVERIFY(H5FD_CURR_ROS3_FAPL_T_VERSION, fa.version, NULL)
@@ -817,7 +817,7 @@ test_populate_ros3_fa(void)
HDprintf("id overflow\n");
}
- HDassert(HDstrlen(values[1]) > H5FD_ROS3_MAX_SECRET_ID_LEN);
+ assert(HDstrlen(values[1]) > H5FD_ROS3_MAX_SECRET_ID_LEN);
JSVERIFY(0, h5tools_populate_ros3_fapl(&fa, values), "could not fill fapl")
JSVERIFY(H5FD_CURR_ROS3_FAPL_T_VERSION, fa.version, NULL)
@@ -924,7 +924,7 @@ test_populate_ros3_fa(void)
HDprintf("key overflow\n");
}
- HDassert(HDstrlen(values[2]) > H5FD_ROS3_MAX_SECRET_KEY_LEN);
+ assert(HDstrlen(values[2]) > H5FD_ROS3_MAX_SECRET_KEY_LEN);
JSVERIFY(0, h5tools_populate_ros3_fapl(&fa, values), "could not fill fapl")
JSVERIFY(H5FD_CURR_ROS3_FAPL_T_VERSION, fa.version, NULL)