diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-28 14:31:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 14:31:56 (GMT) |
commit | 7a44581a84778a1346a2fd5b6cca7d9db905a321 (patch) | |
tree | 44ea9c2d1b471eb227698abe8499c34cfa6d47d2 /test/vds.c | |
parent | 622fcbd13881fbc58bbeaed3062583b759f5e864 (diff) | |
download | hdf5-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/vds.c')
-rw-r--r-- | test/vds.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -277,11 +277,11 @@ vds_check_mapping(hid_t dcpl, size_t i, hid_t vspace, hid_t srcspace, const char htri_t tri_ret; ssize_t str_len; - HDassert(dcpl >= 0); - HDassert(vspace >= 0); - HDassert(srcspace >= 0); - HDassert(filename); - HDassert(dsetname); + assert(dcpl >= 0); + assert(vspace >= 0); + assert(srcspace >= 0); + assert(filename); + assert(dsetname); /* Check vspace */ if ((space_out = H5Pget_virtual_vspace(dcpl, i)) < 0) @@ -314,7 +314,7 @@ vds_check_mapping(hid_t dcpl, size_t i, hid_t vspace, hid_t srcspace, const char TEST_ERROR; if ((size_t)str_len != HDstrlen(filename)) TEST_ERROR; - HDassert((size_t)str_len < sizeof(name_out)); + assert((size_t)str_len < sizeof(name_out)); if ((str_len = H5Pget_virtual_filename(dcpl, i, name_out, sizeof(name_out))) < 0) TEST_ERROR; if ((size_t)str_len != HDstrlen(filename)) @@ -327,7 +327,7 @@ vds_check_mapping(hid_t dcpl, size_t i, hid_t vspace, hid_t srcspace, const char TEST_ERROR; if ((size_t)str_len != HDstrlen(dsetname)) TEST_ERROR; - HDassert((size_t)str_len < sizeof(name_out)); + assert((size_t)str_len < sizeof(name_out)); if ((str_len = H5Pget_virtual_dsetname(dcpl, i, name_out, sizeof(name_out))) < 0) TEST_ERROR; if ((size_t)str_len != HDstrlen(dsetname)) @@ -368,13 +368,13 @@ test_api_get_ex_dcpl(test_api_config_t config, hid_t fapl, hid_t dcpl, hid_t *ex H5O_native_info_t ninfo; /* Object info struct */ htri_t tri_ret; - HDassert((config >= TEST_API_BASIC) && (config < TEST_API_NTESTS)); - HDassert(fapl >= 0); - HDassert(dcpl >= 0); - HDassert(ex_dcpl); - HDassert(*ex_dcpl < 0); - HDassert(vspace >= 0); - HDassert(filename); + assert((config >= TEST_API_BASIC) && (config < TEST_API_NTESTS)); + assert(fapl >= 0); + assert(dcpl >= 0); + assert(ex_dcpl); + assert(*ex_dcpl < 0); + assert(vspace >= 0); + assert(filename); /* Take different action depending on test configuration */ if (config >= TEST_API_CREATE_DSET) { |