summaryrefslogtreecommitdiffstats
path: root/test/freespace.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/freespace.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/freespace.c')
-rw-r--r--test/freespace.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/test/freespace.c b/test/freespace.c
index bd1737a..ad53693 100644
--- a/test/freespace.c
+++ b/test/freespace.c
@@ -198,8 +198,8 @@ TEST_sect_init_cls(H5FS_section_class_t *cls, void *_udata)
unsigned *init_flags;
/* Check arguments. */
- HDassert(cls);
- HDassert(_udata);
+ assert(cls);
+ assert(_udata);
init_flags = (unsigned *)_udata;
cls->flags |= *init_flags;
@@ -220,10 +220,10 @@ TEST_sect_can_merge(const H5FS_section_info_t *_sect1, const H5FS_section_info_t
htri_t ret_value; /* Return value */
/* Check arguments. */
- HDassert(sect1);
- HDassert(sect2);
- HDassert(sect1->sect_info.type == sect2->sect_info.type); /* Checks "MERGE_SYM" flag */
- HDassert(H5_addr_lt(sect1->sect_info.addr, sect2->sect_info.addr));
+ assert(sect1);
+ assert(sect2);
+ assert(sect1->sect_info.type == sect2->sect_info.type); /* Checks "MERGE_SYM" flag */
+ assert(H5_addr_lt(sect1->sect_info.addr, sect2->sect_info.addr));
/* Check if second section adjoins first section */
ret_value = H5_addr_eq(sect1->sect_info.addr + sect1->sect_info.size, sect2->sect_info.addr);
@@ -242,15 +242,15 @@ TEST_sect_merging(H5FS_section_info_t **_sect1, H5FS_section_info_t *_sect2, voi
herr_t ret_value = SUCCEED; /* Return value */
/* Check arguments. */
- HDassert(sect1);
- HDassert(((*sect1)->sect_info.type == TEST_FSPACE_SECT_TYPE) ||
- ((*sect1)->sect_info.type == TEST_FSPACE_SECT_TYPE_NEW) ||
- ((*sect1)->sect_info.type == TEST_FSPACE_SECT_TYPE_NONE));
- HDassert(sect2);
- HDassert((sect2->sect_info.type == TEST_FSPACE_SECT_TYPE) ||
- (sect2->sect_info.type == TEST_FSPACE_SECT_TYPE_NEW) ||
- (sect2->sect_info.type == TEST_FSPACE_SECT_TYPE_NONE));
- HDassert(H5_addr_eq((*sect1)->sect_info.addr + (*sect1)->sect_info.size, sect2->sect_info.addr));
+ assert(sect1);
+ assert(((*sect1)->sect_info.type == TEST_FSPACE_SECT_TYPE) ||
+ ((*sect1)->sect_info.type == TEST_FSPACE_SECT_TYPE_NEW) ||
+ ((*sect1)->sect_info.type == TEST_FSPACE_SECT_TYPE_NONE));
+ assert(sect2);
+ assert((sect2->sect_info.type == TEST_FSPACE_SECT_TYPE) ||
+ (sect2->sect_info.type == TEST_FSPACE_SECT_TYPE_NEW) ||
+ (sect2->sect_info.type == TEST_FSPACE_SECT_TYPE_NONE));
+ assert(H5_addr_eq((*sect1)->sect_info.addr + (*sect1)->sect_info.size, sect2->sect_info.addr));
/* Add second section's size to first section */
(*sect1)->sect_info.size += sect2->sect_info.size;
@@ -334,8 +334,8 @@ TEST_sects_cb(H5FS_section_info_t *_sect, void *_udata)
TEST_iter_ud_t *udata = (TEST_iter_ud_t *)_udata;
herr_t ret_value = SUCCEED; /* Return value */
- HDassert(sect);
- HDassert(udata);
+ assert(sect);
+ assert(udata);
udata->tot_size += sect->sect_info.size;
udata->tot_sect_count += 1;