summaryrefslogtreecommitdiffstats
path: root/test/links.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 /test/links.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 'test/links.c')
-rw-r--r--test/links.c54
1 files changed, 27 insertions, 27 deletions
diff --git a/test/links.c b/test/links.c
index b865275..fcafbf8 100644
--- a/test/links.c
+++ b/test/links.c
@@ -955,7 +955,7 @@ toomany(hid_t fapl, hbool_t new_format)
/* XXX: should probably make a "generic" test that creates the proper
* # of links based on this value - QAK
*/
- HDassert(H5L_NUM_LINKS == 16);
+ assert(H5L_NUM_LINKS == 16);
/* Create file */
h5_fixname(FILENAME[1], fapl, filename, sizeof filename);
@@ -4148,7 +4148,7 @@ lapl_nlinks_deprec(hid_t fapl, hbool_t new_format)
/* XXX: should probably make a "generic" test that creates the proper
* # of links based on this value - QAK
*/
- HDassert(H5L_NUM_LINKS == 16);
+ assert(H5L_NUM_LINKS == 16);
/* Create file */
h5_fixname(FILENAME[1], fapl, filename, sizeof filename);
@@ -6349,7 +6349,7 @@ link_iterate_check_deprec(hid_t group_id, H5_index_t idx_type, H5_iter_order_t o
else {
unsigned nvisit = 0; /* # of links visited */
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
for (v = 0; v < max_links; v++)
if (iter_info->visited[v] == TRUE)
nvisit++;
@@ -6384,7 +6384,7 @@ link_iterate_check_deprec(hid_t group_id, H5_index_t idx_type, H5_iter_order_t o
else {
unsigned nvisit = 0; /* # of links visited */
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
for (v = 0; v < max_links; v++)
if (iter_info->visited[v] == TRUE)
nvisit++;
@@ -6510,7 +6510,7 @@ link_iterate_deprec(hid_t fapl)
"creation order index using deprecated routines");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
if (use_index)
TESTING("iterating over links by creation order index in native order w/creation "
"order index using deprecated routines");
@@ -6537,7 +6537,7 @@ link_iterate_deprec(hid_t fapl)
"order index using deprecated routines");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
if (use_index)
TESTING("iterating over links by name index in native order w/creation order "
"index using deprecated routines");
@@ -6832,7 +6832,7 @@ link_iterate_old_check_deprec(hid_t group_id, H5_iter_order_t order, unsigned ma
else {
unsigned nvisit = 0; /* # of links visited */
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
for (v = 0; v < max_links; v++)
if (iter_info->visited[v] == TRUE)
nvisit++;
@@ -6867,7 +6867,7 @@ link_iterate_old_check_deprec(hid_t group_id, H5_iter_order_t order, unsigned ma
else {
unsigned nvisit = 0; /* # of links visited */
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
for (v = 0; v < max_links; v++)
if (iter_info->visited[v] == TRUE)
nvisit++;
@@ -6980,7 +6980,7 @@ link_iterate_old_deprec(hid_t fapl)
"deprecated routines");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
TESTING("iterating over links by name index in native order in old-style group using deprecated "
"routines");
} /* end else */
@@ -7986,7 +7986,7 @@ external_link_toomany(hid_t fapl, hbool_t new_format)
/* XXX: should probably make a "generic" test that creates the proper
* # of links based on this value - QAK
*/
- HDassert(H5L_NUM_LINKS == 16);
+ assert(H5L_NUM_LINKS == 16);
/* Set up filenames */
h5_fixname(FILENAME[3], fapl, filename1, sizeof filename1);
@@ -15244,7 +15244,7 @@ lapl_nlinks(hid_t fapl, hbool_t new_format)
/* XXX: should probably make a "generic" test that creates the proper
* # of links based on this value - QAK
*/
- HDassert(H5L_NUM_LINKS == 16);
+ assert(H5L_NUM_LINKS == 16);
/* Create file */
h5_fixname(FILENAME[1], fapl, filename, sizeof filename);
@@ -19534,7 +19534,7 @@ link_iterate_check(hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, u
else {
unsigned nvisit = 0; /* # of links visited */
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
for (v = 0; v < max_links; v++)
if (iter_info->visited[v] == TRUE)
nvisit++;
@@ -19570,7 +19570,7 @@ link_iterate_check(hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, u
else {
unsigned nvisit = 0; /* # of links visited */
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
for (v = 0; v < max_links; v++)
if (iter_info->visited[v] == TRUE)
nvisit++;
@@ -19699,7 +19699,7 @@ link_iterate(hid_t fapl)
"creation order index");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
if (use_index)
TESTING("iterating over links by creation order index in native order w/creation "
"order index");
@@ -19726,7 +19726,7 @@ link_iterate(hid_t fapl)
"order index");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
if (use_index)
TESTING(
"iterating over links by name index in native order w/creation order index");
@@ -20031,7 +20031,7 @@ link_iterate_old_check(hid_t group_id, H5_iter_order_t order, unsigned max_links
else {
unsigned nvisit = 0; /* # of links visited */
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
for (v = 0; v < max_links; v++)
if (iter_info->visited[v] == TRUE)
nvisit++;
@@ -20067,7 +20067,7 @@ link_iterate_old_check(hid_t group_id, H5_iter_order_t order, unsigned max_links
else {
unsigned nvisit = 0; /* # of links visited */
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
for (v = 0; v < max_links; v++)
if (iter_info->visited[v] == TRUE)
nvisit++;
@@ -20183,7 +20183,7 @@ link_iterate_old(hid_t fapl)
TESTING("iterating over links by name index in decreasing order in old-style group");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
TESTING("iterating over links by name index in native order in old-style group");
} /* end else */
@@ -20461,7 +20461,7 @@ open_by_idx(hid_t fapl)
"order index");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
if (use_index)
TESTING(
"open object by creation order index in native order w/creation order index");
@@ -20484,7 +20484,7 @@ open_by_idx(hid_t fapl)
TESTING("open object by name index in decreasing order w/o creation order index");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
if (use_index)
TESTING("open object by name index in native order w/creation order index");
else
@@ -20810,7 +20810,7 @@ open_by_idx_old(hid_t fapl)
TESTING("open object by name index in decreasing order in old-style group");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
TESTING("open object by name index in native order in old-style group");
} /* end else */
@@ -21078,7 +21078,7 @@ object_info(hid_t fapl)
"creation order index");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
if (use_index)
TESTING("query object info by creation order index in native order w/creation "
"order index");
@@ -21105,7 +21105,7 @@ object_info(hid_t fapl)
"index");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
if (use_index)
TESTING("query object info by name index in native order w/creation order index");
else
@@ -21435,7 +21435,7 @@ object_info_old(hid_t fapl)
TESTING("query object info by name index in decreasing order in old-style group");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
TESTING("query object info by name index in native order in old-style group");
} /* end else */
@@ -21629,7 +21629,7 @@ group_info(hid_t fapl)
"creation order index");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
if (use_index)
TESTING("query group info by creation order index in native order w/creation "
"order index");
@@ -21656,7 +21656,7 @@ group_info(hid_t fapl)
"index");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
if (use_index)
TESTING("query group info by name index in native order w/creation order index");
else
@@ -22149,7 +22149,7 @@ group_info_old(hid_t fapl)
TESTING("query group info by name index in decreasing order in old-style group");
} /* end else */
else {
- HDassert(order == H5_ITER_NATIVE);
+ assert(order == H5_ITER_NATIVE);
TESTING("query group info by name index in native order in old-style group");
} /* end else */