summaryrefslogtreecommitdiffstats
path: root/test/cache_image.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/cache_image.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/cache_image.c')
-rw-r--r--test/cache_image.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/cache_image.c b/test/cache_image.c
index b9b5a29..fc76ed6 100644
--- a/test/cache_image.c
+++ b/test/cache_image.c
@@ -112,9 +112,9 @@ create_datasets(hid_t file_id, int min_dset, int max_dset)
if (show_progress)
HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
- HDassert(0 <= min_dset);
- HDassert(min_dset <= max_dset);
- HDassert(max_dset < MAX_NUM_DSETS);
+ assert(0 <= min_dset);
+ assert(min_dset <= max_dset);
+ assert(max_dset < MAX_NUM_DSETS);
/* create the datasets */
@@ -423,9 +423,9 @@ delete_datasets(hid_t file_id, int min_dset, int max_dset)
if (show_progress)
HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
- HDassert(0 <= min_dset);
- HDassert(min_dset <= max_dset);
- HDassert(max_dset < MAX_NUM_DSETS);
+ assert(0 <= min_dset);
+ assert(min_dset <= max_dset);
+ assert(max_dset < MAX_NUM_DSETS);
if (show_progress)
HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
@@ -1004,9 +1004,9 @@ verify_datasets(hid_t file_id, int min_dset, int max_dset)
if (show_progress)
HDfprintf(stdout, "%s: cp = %d.\n", fcn_name, cp++);
- HDassert(0 <= min_dset);
- HDassert(min_dset <= max_dset);
- HDassert(max_dset < MAX_NUM_DSETS);
+ assert(0 <= min_dset);
+ assert(min_dset <= max_dset);
+ assert(max_dset < MAX_NUM_DSETS);
/* open the datasets */
@@ -6625,7 +6625,7 @@ cache_image_api_error_check_4(hbool_t single_file_vfd)
#if H5C_COLLECT_CACHE_STATS
if (pass) {
- HDassert(cache_ptr);
+ assert(cache_ptr);
if (cache_ptr->images_loaded != 0) {
@@ -7658,7 +7658,7 @@ evict_on_close_test(hbool_t H5_ATTR_PARALLEL_UNUSED single_file_vfd)
if (verbose) {
- HDassert(cache_ptr);
+ assert(cache_ptr);
HDfprintf(stdout, "index size / index dirty size = %lld / %lld\n", (long long)(cache_ptr->index_size),
(long long)(cache_ptr->dirty_index_size));