summaryrefslogtreecommitdiffstats
path: root/test/earray.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/earray.c')
-rw-r--r--test/earray.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/test/earray.c b/test/earray.c
index 5e0fdef..0ce1b32 100644
--- a/test/earray.c
+++ b/test/earray.c
@@ -230,7 +230,7 @@ init_tparam(earray_test_param_t *tparam, const H5EA_create_t *cparam)
/* Allocate information for each super block */
tparam->sblk_info = (H5EA_sblk_info_t *)HDmalloc(sizeof(H5EA_sblk_info_t) * tparam->nsblks);
- HDassert(tparam->sblk_info);
+ assert(tparam->sblk_info);
/* Compute information about each super block */
start_idx = 0;
@@ -1301,7 +1301,7 @@ eiter_fw_init(const H5EA_create_t H5_ATTR_UNUSED *cparam, const earray_test_para
/* Allocate space for the element iteration object */
eiter = (eiter_fw_t *)HDmalloc(sizeof(eiter_fw_t));
- HDassert(eiter);
+ assert(eiter);
/* Initialize the element iteration object */
eiter->idx = 0;
@@ -1331,7 +1331,7 @@ eiter_fw_next(void *in_eiter)
hssize_t ret_val;
/* Sanity check */
- HDassert(eiter);
+ assert(eiter);
/* Get the next array index to test */
ret_val = (hssize_t)eiter->idx++;
@@ -1358,7 +1358,7 @@ eiter_fw_max(const void *in_eiter)
const eiter_fw_t *eiter = (const eiter_fw_t *)in_eiter;
/* Sanity check */
- HDassert(eiter);
+ assert(eiter);
/* Return the max. array index used */
return ((hssize_t)(eiter->idx - 1));
@@ -1384,10 +1384,10 @@ eiter_fw_state(void *in_eiter, const H5EA_create_t *cparam, const earray_test_pa
eiter_fw_t *eiter = (eiter_fw_t *)in_eiter;
/* Sanity check */
- HDassert(eiter);
- HDassert(cparam);
- HDassert(tparam);
- HDassert(state);
+ assert(eiter);
+ assert(cparam);
+ assert(tparam);
+ assert(state);
/* Compute the state of the extensible array */
state->hdr_size = EA_HDR_SIZE;
@@ -1441,7 +1441,7 @@ static int
eiter_fw_term(void *eiter)
{
/* Sanity check */
- HDassert(eiter);
+ assert(eiter);
/* Free iteration object */
HDfree(eiter);
@@ -1488,7 +1488,7 @@ eiter_rv_init(const H5EA_create_t *cparam, const earray_test_param_t *tparam, hs
/* Allocate space for the element iteration object */
eiter = (eiter_rv_t *)HDmalloc(sizeof(eiter_rv_t));
- HDassert(eiter);
+ assert(eiter);
/* Initialize reverse iteration info */
eiter->idx = cnt - 1;
@@ -1531,7 +1531,7 @@ eiter_rv_next(void *in_eiter)
hssize_t ret_val;
/* Sanity check */
- HDassert(eiter);
+ assert(eiter);
/* Get the next array index to test */
ret_val = (hssize_t)eiter->idx--;
@@ -1558,7 +1558,7 @@ eiter_rv_max(const void *in_eiter)
const eiter_rv_t *eiter = (const eiter_rv_t *)in_eiter;
/* Sanity check */
- HDassert(eiter);
+ assert(eiter);
/* Return the max. array index used */
return ((hssize_t)eiter->max);
@@ -1584,10 +1584,10 @@ eiter_rv_state(void *in_eiter, const H5EA_create_t *cparam, const earray_test_pa
eiter_rv_t *eiter = (eiter_rv_t *)in_eiter;
/* Sanity check */
- HDassert(eiter);
- HDassert(cparam);
- HDassert(tparam);
- HDassert(state);
+ assert(eiter);
+ assert(cparam);
+ assert(tparam);
+ assert(state);
/* Compute the state of the extensible array */
state->hdr_size = EA_HDR_SIZE;
@@ -1666,7 +1666,7 @@ static int
eiter_rv_term(void *eiter)
{
/* Sanity check */
- HDassert(eiter);
+ assert(eiter);
/* Free iteration object */
HDfree(eiter);
@@ -1712,11 +1712,11 @@ eiter_rnd_init(const H5EA_create_t H5_ATTR_UNUSED *cparam, const earray_test_par
/* Allocate space for the element iteration object */
eiter = (eiter_rnd_t *)HDmalloc(sizeof(eiter_rnd_t));
- HDassert(eiter);
+ assert(eiter);
/* Allocate space for the array of shuffled indices */
eiter->idx = (hsize_t *)HDmalloc(sizeof(hsize_t) * (size_t)cnt);
- HDassert(eiter->idx);
+ assert(eiter->idx);
/* Initialize reverse iteration info */
eiter->max = 0;
@@ -1761,7 +1761,7 @@ eiter_rnd_next(void *in_eiter)
hssize_t ret_val;
/* Sanity check */
- HDassert(eiter);
+ assert(eiter);
/* Get the next array index to test */
ret_val = (hssize_t)eiter->idx[eiter->pos];
@@ -1793,7 +1793,7 @@ eiter_rnd_max(const void *in_eiter)
const eiter_rnd_t *eiter = (const eiter_rnd_t *)in_eiter;
/* Sanity check */
- HDassert(eiter);
+ assert(eiter);
/* Return the max. array index used */
return ((hssize_t)eiter->max);
@@ -1818,8 +1818,8 @@ eiter_rnd_term(void *in_eiter)
eiter_rnd_t *eiter = (eiter_rnd_t *)in_eiter;
/* Sanity check */
- HDassert(eiter);
- HDassert(eiter->idx);
+ assert(eiter);
+ assert(eiter->idx);
/* Free shuffled index array */
HDfree(eiter->idx);
@@ -1861,11 +1861,11 @@ eiter_rnd2_init(const H5EA_create_t H5_ATTR_UNUSED *cparam, const earray_test_pa
/* Allocate space for the element iteration object */
eiter = (eiter_rnd_t *)HDmalloc(sizeof(eiter_rnd_t));
- HDassert(eiter);
+ assert(eiter);
/* Allocate space for the array of shuffled indices */
eiter->idx = (hsize_t *)HDmalloc(sizeof(hsize_t) * (size_t)cnt);
- HDassert(eiter->idx);
+ assert(eiter->idx);
/* Initialize reverse iteration info */
eiter->max = 0;
@@ -1878,7 +1878,7 @@ eiter_rnd2_init(const H5EA_create_t H5_ATTR_UNUSED *cparam, const earray_test_pa
/* Allocate temporary index array */
tmp_idx = (hsize_t *)HDmalloc(sizeof(hsize_t) * (size_t)sparse_cnt);
- HDassert(tmp_idx);
+ assert(tmp_idx);
/* Initialize temporary index array, for shuffling */
for (u = 0; u < (size_t)sparse_cnt; u++)
@@ -1943,7 +1943,7 @@ eiter_cyc_init(const H5EA_create_t H5_ATTR_UNUSED *cparam, const earray_test_par
/* Allocate space for the element iteration object */
eiter = (eiter_cyc_t *)HDmalloc(sizeof(eiter_cyc_t));
- HDassert(eiter);
+ assert(eiter);
/* Initialize reverse iteration info */
eiter->max = 0;
@@ -1975,7 +1975,7 @@ eiter_cyc_next(void *in_eiter)
hssize_t ret_val;
/* Sanity check */
- HDassert(eiter);
+ assert(eiter);
/* Get the next array index to test */
ret_val = (hssize_t)eiter->pos;
@@ -2009,7 +2009,7 @@ eiter_cyc_max(const void *in_eiter)
const eiter_cyc_t *eiter = (const eiter_cyc_t *)in_eiter;
/* Sanity check */
- HDassert(eiter);
+ assert(eiter);
/* Return the max. array index used */
return ((hssize_t)eiter->max);
@@ -2034,7 +2034,7 @@ eiter_cyc_term(void *in_eiter)
eiter_cyc_t *eiter = (eiter_cyc_t *)in_eiter;
/* Sanity check */
- HDassert(eiter);
+ assert(eiter);
/* Free iteration object */
HDfree(eiter);