diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/btree2.c | 62 | ||||
-rw-r--r-- | test/cache.c | 2 | ||||
-rw-r--r-- | test/cache_common.h | 4 | ||||
-rw-r--r-- | test/cache_image.c | 12 | ||||
-rw-r--r-- | test/earray.c | 2 | ||||
-rw-r--r-- | test/farray.c | 2 | ||||
-rw-r--r-- | test/fheap.c | 96 | ||||
-rw-r--r-- | test/freespace.c | 52 | ||||
-rw-r--r-- | test/gheap.c | 2 | ||||
-rw-r--r-- | test/links.c | 26 | ||||
-rw-r--r-- | test/mf.c | 52 |
11 files changed, 156 insertions, 156 deletions
diff --git a/test/btree2.c b/test/btree2.c index a9393b3..b56e238 100644 --- a/test/btree2.c +++ b/test/btree2.c @@ -133,7 +133,7 @@ create_btree(H5F_t *f, const H5B2_create_t *cparam, H5B2_t **bt2, haddr_t *bt2_a FAIL_STACK_ERROR; if (H5B2_get_addr(*bt2, bt2_addr /*out*/) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(*bt2_addr)) + if (!H5_addr_defined(*bt2_addr)) FAIL_STACK_ERROR; /* Success */ @@ -5271,7 +5271,7 @@ test_remove_basic(hid_t fapl, const H5B2_create_t *cparam, const bt2_test_param_ FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Attempt to remove a non-existent record from a B-tree with 1 record */ @@ -5316,7 +5316,7 @@ test_remove_basic(hid_t fapl, const H5B2_create_t *cparam, const bt2_test_param_ FAIL_STACK_ERROR; /* Make certain that the root node has been freed */ - if (H5F_addr_defined(root_addr)) + if (H5_addr_defined(root_addr)) TEST_ERROR; PASSED(); @@ -5400,7 +5400,7 @@ test_remove_basic(hid_t fapl, const H5B2_create_t *cparam, const bt2_test_param_ FAIL_STACK_ERROR; /* Make certain that the root node has not been freed */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; record = 34; @@ -5425,7 +5425,7 @@ test_remove_basic(hid_t fapl, const H5B2_create_t *cparam, const bt2_test_param_ FAIL_STACK_ERROR; /* Make certain that the root node has not been freed */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; record = 56; @@ -5450,7 +5450,7 @@ test_remove_basic(hid_t fapl, const H5B2_create_t *cparam, const bt2_test_param_ FAIL_STACK_ERROR; /* Make certain that the root node has not been freed */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; record = 38; @@ -5475,7 +5475,7 @@ test_remove_basic(hid_t fapl, const H5B2_create_t *cparam, const bt2_test_param_ FAIL_STACK_ERROR; /* Make certain that the root node has been freed */ - if (H5F_addr_defined(root_addr)) + if (H5_addr_defined(root_addr)) TEST_ERROR; /* Close the v2 B-tree */ @@ -5557,7 +5557,7 @@ test_remove_level1_noredistrib(hid_t fapl, const H5B2_create_t *cparam, const bt FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Attempt to remove a non-existent record from a B-tree with 1 record */ @@ -5785,7 +5785,7 @@ test_remove_level1_redistrib(hid_t fapl, const H5B2_create_t *cparam, const bt2_ FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -5980,7 +5980,7 @@ test_remove_level1_2leaf_merge(hid_t fapl, const H5B2_create_t *cparam, const bt FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -6155,7 +6155,7 @@ test_remove_level1_3leaf_merge(hid_t fapl, const H5B2_create_t *cparam, const bt FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -6283,7 +6283,7 @@ test_remove_level1_promote(hid_t fapl, const H5B2_create_t *cparam, const bt2_te FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -6501,7 +6501,7 @@ test_remove_level1_promote_2leaf_redistrib(hid_t fapl, const H5B2_create_t *cpar FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -6646,7 +6646,7 @@ test_remove_level1_promote_3leaf_redistrib(hid_t fapl, const H5B2_create_t *cpar FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -6791,7 +6791,7 @@ test_remove_level1_promote_2leaf_merge(hid_t fapl, const H5B2_create_t *cparam, FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -6933,7 +6933,7 @@ test_remove_level1_promote_3leaf_merge(hid_t fapl, const H5B2_create_t *cparam, FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -7071,7 +7071,7 @@ test_remove_level1_collapse(hid_t fapl, const H5B2_create_t *cparam, const bt2_t FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -7118,7 +7118,7 @@ test_remove_level1_collapse(hid_t fapl, const H5B2_create_t *cparam, const bt2_t FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Close the v2 B-tree */ @@ -7209,7 +7209,7 @@ test_remove_level2_promote(hid_t fapl, const H5B2_create_t *cparam, const bt2_te FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -7492,7 +7492,7 @@ test_remove_level2_promote_2internal_redistrib(hid_t fapl, const H5B2_create_t * FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -7640,7 +7640,7 @@ test_remove_level2_promote_3internal_redistrib(hid_t fapl, const H5B2_create_t * FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -7788,7 +7788,7 @@ test_remove_level2_promote_2internal_merge(hid_t fapl, const H5B2_create_t *cpar FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -7937,7 +7937,7 @@ test_remove_level2_promote_3internal_merge(hid_t fapl, const H5B2_create_t *cpar FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -8086,7 +8086,7 @@ test_remove_level2_2internal_merge_left(hid_t fapl, const H5B2_create_t *cparam, FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -8209,7 +8209,7 @@ test_remove_level2_2internal_merge_right(hid_t fapl, const H5B2_create_t *cparam FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -8331,7 +8331,7 @@ test_remove_level2_3internal_merge(hid_t fapl, const H5B2_create_t *cparam, cons FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -8455,7 +8455,7 @@ test_remove_level2_collapse_right(hid_t fapl, const H5B2_create_t *cparam, const FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (!H5F_addr_defined(root_addr)) + if (!H5_addr_defined(root_addr)) TEST_ERROR; /* Check for closing & re-opening the B-tree */ @@ -8737,7 +8737,7 @@ fprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time); FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (H5F_addr_defined(root_addr)) + if (H5_addr_defined(root_addr)) TEST_ERROR; /* Close the v2 B-tree */ @@ -8821,7 +8821,7 @@ fprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time); FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (H5F_addr_defined(root_addr)) + if (H5_addr_defined(root_addr)) TEST_ERROR; /* Close the v2 B-tree */ @@ -8903,7 +8903,7 @@ fprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time); FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (H5F_addr_defined(root_addr)) + if (H5_addr_defined(root_addr)) TEST_ERROR; /* Close the v2 B-tree */ @@ -8985,7 +8985,7 @@ fprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time); FAIL_STACK_ERROR; /* Make certain that the address of the root node is defined */ - if (H5F_addr_defined(root_addr)) + if (H5_addr_defined(root_addr)) TEST_ERROR; /* Close the v2 B-tree */ diff --git a/test/cache.c b/test/cache.c index 970a999..48f10f2 100644 --- a/test/cache.c +++ b/test/cache.c @@ -33812,7 +33812,7 @@ takedown_cache(H5F_t *file_ptr, hbool_t dump_stats, hbool_t dump_detailed_stats) if (saved_fid != -1) { - if (H5F_addr_defined(saved_actual_base_addr)) { + if (H5_addr_defined(saved_actual_base_addr)) { if (NULL == file_ptr) { file_ptr = (H5F_t *)H5VL_object_verify(saved_fid, H5I_FILE); diff --git a/test/cache_common.h b/test/cache_common.h index 5b3cc2b..53f783e 100644 --- a/test/cache_common.h +++ b/test/cache_common.h @@ -408,7 +408,7 @@ typedef struct test_entry_t { #define H5C_TEST__PRE_HT_SEARCH_SC(cache_ptr, Addr) \ if (((cache_ptr) == NULL) || ((cache_ptr)->magic != H5C__H5C_T_MAGIC) || \ ((cache_ptr)->index_size != ((cache_ptr)->clean_index_size + (cache_ptr)->dirty_index_size)) || \ - (!H5F_addr_defined(Addr)) || (H5C__HASH_FCN(Addr) < 0) || \ + (!H5_addr_defined(Addr)) || (H5C__HASH_FCN(Addr) < 0) || \ (H5C__HASH_FCN(Addr) >= H5C__HASH_TABLE_LEN)) { \ HDfprintf(stdout, "Pre HT search SC failed.\n"); \ } @@ -438,7 +438,7 @@ typedef struct test_entry_t { k = H5C__HASH_FCN(Addr); \ entry_ptr = ((cache_ptr)->index)[k]; \ while (entry_ptr) { \ - if (H5F_addr_eq(Addr, (entry_ptr)->addr)) { \ + if (H5_addr_eq(Addr, (entry_ptr)->addr)) { \ H5C_TEST__POST_SUC_HT_SEARCH_SC(cache_ptr, entry_ptr, k) \ if (entry_ptr != ((cache_ptr)->index)[k]) { \ if ((entry_ptr)->ht_next) \ diff --git a/test/cache_image.c b/test/cache_image.c index 70da799..ccf516d 100644 --- a/test/cache_image.c +++ b/test/cache_image.c @@ -7142,9 +7142,9 @@ get_free_sections_test(hbool_t single_file_vfd) /* file_ptr->shared->first_alloc_dealloc is set to FALSE if the * file is opened R/O. */ - if ((!H5F_addr_defined(file_ptr->shared->eoa_fsm_fsalloc)) || - (!H5F_addr_defined(file_ptr->shared->cache->image_addr)) || - (H5F_addr_gt(file_ptr->shared->eoa_fsm_fsalloc, file_ptr->shared->cache->image_addr))) { + if ((!H5_addr_defined(file_ptr->shared->eoa_fsm_fsalloc)) || + (!H5_addr_defined(file_ptr->shared->cache->image_addr)) || + (H5_addr_gt(file_ptr->shared->eoa_fsm_fsalloc, file_ptr->shared->cache->image_addr))) { pass = FALSE; failure_mssg = "unexpected cache image status (1).\n"; @@ -7247,9 +7247,9 @@ get_free_sections_test(hbool_t single_file_vfd) */ if (pass) { - if ((!H5F_addr_defined(file_ptr->shared->eoa_fsm_fsalloc)) || - (!H5F_addr_defined(file_ptr->shared->cache->image_addr)) || - (H5F_addr_gt(file_ptr->shared->eoa_fsm_fsalloc, file_ptr->shared->cache->image_addr))) { + if ((!H5_addr_defined(file_ptr->shared->eoa_fsm_fsalloc)) || + (!H5_addr_defined(file_ptr->shared->cache->image_addr)) || + (H5_addr_gt(file_ptr->shared->eoa_fsm_fsalloc, file_ptr->shared->cache->image_addr))) { pass = FALSE; failure_mssg = "unexpected cache image status (2).\n"; diff --git a/test/earray.c b/test/earray.c index c2b5273..ad85281 100644 --- a/test/earray.c +++ b/test/earray.c @@ -465,7 +465,7 @@ create_array(H5F_t *f, const H5EA_create_t *cparam, H5EA_t **ea, haddr_t *ea_add TEST_ERROR; if (H5EA_get_addr(*ea, ea_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(*ea_addr)) + if (!H5_addr_defined(*ea_addr)) TEST_ERROR; memset(&state, 0, sizeof(state)); state.hdr_size = EA_HDR_SIZE; diff --git a/test/farray.c b/test/farray.c index 8f46e70..ff5685a 100644 --- a/test/farray.c +++ b/test/farray.c @@ -316,7 +316,7 @@ create_array(H5F_t *f, const H5FA_create_t *cparam, H5FA_t **fa, haddr_t *fa_add /* Check status of array */ if (H5FA_get_addr(*fa, fa_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(*fa_addr)) + if (!H5_addr_defined(*fa_addr)) TEST_ERROR; /* Check array stats */ diff --git a/test/fheap.c b/test/fheap.c index 5ece28b..6c6a003 100644 --- a/test/fheap.c +++ b/test/fheap.c @@ -629,7 +629,7 @@ open_heap(char *filename, hid_t fapl, const H5HF_create_t *cparam, const fheap_t TEST_ERROR; if (H5HF_get_heap_addr(*fh, fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(*fh_addr)) + if (!H5_addr_defined(*fh_addr)) TEST_ERROR; memset(state, 0, sizeof(fheap_heap_state_t)); if (check_stats(*fh, state)) @@ -674,7 +674,7 @@ open_heap(char *filename, hid_t fapl, const H5HF_create_t *cparam, const fheap_t TEST_ERROR; if (H5HF_get_heap_addr(*fh, fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(*fh_addr)) + if (!H5_addr_defined(*fh_addr)) TEST_ERROR; memset(state, 0, sizeof(fheap_heap_state_t)); if (check_stats(*fh, state)) @@ -818,7 +818,7 @@ del_objs_half_refill(H5F_t *f, H5HF_t **fh, fheap_test_param_t *tparam, fheap_he if (tparam->reopen_heap) { if (H5HF_get_heap_addr(*fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) TEST_ERROR; } /* end if */ @@ -912,7 +912,7 @@ del_objs(H5F_t *f, H5HF_t **fh, fheap_test_param_t *tparam, fheap_heap_state_t * if (tparam->reopen_heap) { if (H5HF_get_heap_addr(*fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) TEST_ERROR; } /* end if */ @@ -1770,7 +1770,7 @@ test_create(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam) TEST_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) TEST_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) @@ -1892,7 +1892,7 @@ test_reopen(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam) TEST_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) TEST_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) @@ -2044,7 +2044,7 @@ test_open_twice(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam) TEST_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) TEST_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) @@ -2211,7 +2211,7 @@ test_delete_open(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam) TEST_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) TEST_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) @@ -2712,7 +2712,7 @@ test_filtered_create(hid_t fapl, H5HF_create_t *cparam, hid_t fcpl) /* Get heap's address */ if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) TEST_ERROR; /* Close the fractal heap */ @@ -2823,7 +2823,7 @@ test_size(hid_t fapl, H5HF_create_t *cparam, hid_t fcpl) /* Get heap's address */ if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) TEST_ERROR; /* Get an empty heap's size */ @@ -2961,7 +2961,7 @@ test_reopen_hdr(hid_t fapl, H5HF_create_t *cparam, hid_t fcpl) /* Get heap's address */ if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) TEST_ERROR; /* Insert an object */ @@ -3091,7 +3091,7 @@ test_man_insert_weird(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpa TEST_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) TEST_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) @@ -3201,7 +3201,7 @@ test_man_insert_first(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpa TEST_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) TEST_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) @@ -3299,7 +3299,7 @@ test_man_insert_second(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tp FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -3393,7 +3393,7 @@ test_man_insert_root_mult(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -3489,7 +3489,7 @@ test_man_insert_force_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_par FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -3592,7 +3592,7 @@ test_man_insert_fill_second(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_ FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -3696,7 +3696,7 @@ test_man_insert_third_direct(hid_t fapl, H5HF_create_t *cparam, fheap_test_param FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -3804,7 +3804,7 @@ test_man_fill_first_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *t FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -3897,7 +3897,7 @@ test_man_start_second_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -3997,7 +3997,7 @@ test_man_fill_second_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t * FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -4095,7 +4095,7 @@ test_man_start_third_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t * FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -4203,7 +4203,7 @@ test_man_fill_fourth_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t * FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -4297,7 +4297,7 @@ test_man_fill_all_root_direct(hid_t fapl, H5HF_create_t *cparam, fheap_test_para FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -4390,7 +4390,7 @@ test_man_first_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_ FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -4489,7 +4489,7 @@ test_man_second_direct_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fhe FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -4596,7 +4596,7 @@ test_man_fill_first_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_ FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -4696,7 +4696,7 @@ test_man_second_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -4804,7 +4804,7 @@ test_man_fill_second_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -4905,7 +4905,7 @@ test_man_fill_recursive_indirect_row(hid_t fapl, H5HF_create_t *cparam, fheap_te FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -5004,7 +5004,7 @@ test_man_start_2nd_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_t FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -5110,7 +5110,7 @@ test_man_recursive_indirect_two_deep(hid_t fapl, H5HF_create_t *cparam, fheap_te FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -5210,7 +5210,7 @@ test_man_start_3rd_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_t FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -5317,7 +5317,7 @@ test_man_fill_first_3rd_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fh FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -5425,7 +5425,7 @@ test_man_fill_3rd_recursive_indirect_row(hid_t fapl, H5HF_create_t *cparam, fhea FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -5530,7 +5530,7 @@ test_man_fill_all_3rd_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fhea FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -5636,7 +5636,7 @@ test_man_start_4th_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_t FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -5748,7 +5748,7 @@ test_man_fill_first_4th_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fh FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -5866,7 +5866,7 @@ test_man_fill_4th_recursive_indirect_row(hid_t fapl, H5HF_create_t *cparam, fhea FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -5975,7 +5975,7 @@ test_man_fill_all_4th_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fhea FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -6086,7 +6086,7 @@ test_man_start_5th_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_t FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); @@ -6215,7 +6215,7 @@ test_man_remove_bogus(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpa FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) @@ -6371,7 +6371,7 @@ test_man_remove_one(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpara FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) @@ -6533,7 +6533,7 @@ test_man_remove_two(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpara FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) @@ -6724,7 +6724,7 @@ test_man_remove_one_larger(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) @@ -6891,7 +6891,7 @@ test_man_remove_two_larger(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) @@ -7129,7 +7129,7 @@ test_man_remove_three_larger(hid_t fapl, H5HF_create_t *cparam, fheap_test_param FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) @@ -7431,7 +7431,7 @@ test_man_incr_insert_remove(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_ FAIL_STACK_ERROR; if (H5HF_get_heap_addr(fh, &fh_addr) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fh_addr)) + if (!H5_addr_defined(fh_addr)) FAIL_STACK_ERROR; memset(&state, 0, sizeof(fheap_heap_state_t)); if (check_stats(fh, &state)) diff --git a/test/freespace.c b/test/freespace.c index 9c9a2f2..b00540b 100644 --- a/test/freespace.c +++ b/test/freespace.c @@ -223,10 +223,10 @@ TEST_sect_can_merge(const H5FS_section_info_t *_sect1, const H5FS_section_info_t assert(sect1); assert(sect2); assert(sect1->sect_info.type == sect2->sect_info.type); /* Checks "MERGE_SYM" flag */ - assert(H5F_addr_lt(sect1->sect_info.addr, sect2->sect_info.addr)); + assert(H5_addr_lt(sect1->sect_info.addr, sect2->sect_info.addr)); /* Check if second section adjoins first section */ - ret_value = H5F_addr_eq(sect1->sect_info.addr + sect1->sect_info.size, sect2->sect_info.addr); + ret_value = H5_addr_eq(sect1->sect_info.addr + sect1->sect_info.size, sect2->sect_info.addr); return ret_value; } /* TEST_sect_can_merge() */ @@ -250,7 +250,7 @@ TEST_sect_merging(H5FS_section_info_t **_sect1, H5FS_section_info_t *_sect2, voi 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(H5F_addr_eq((*sect1)->sect_info.addr + (*sect1)->sect_info.size, sect2->sect_info.addr)); + 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; @@ -487,7 +487,7 @@ test_fs_create(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; if (frsp->nclasses != nclasses) TEST_ERROR; @@ -512,7 +512,7 @@ test_fs_create(hid_t fapl) (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; if (frsp->nclasses != nclasses) TEST_ERROR; @@ -629,7 +629,7 @@ test_fs_sect_add(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; if (NULL == (sect_node = (TEST_free_section_t *)malloc(sizeof(TEST_free_section_t)))) @@ -694,7 +694,7 @@ test_fs_sect_add(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* Create free list section node */ @@ -769,7 +769,7 @@ test_fs_sect_add(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; if (NULL == (sect_node = (TEST_free_section_t *)malloc(sizeof(TEST_free_section_t)))) @@ -839,7 +839,7 @@ test_fs_sect_add(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; if (NULL == (sect_node = (TEST_free_section_t *)malloc(sizeof(TEST_free_section_t)))) @@ -962,7 +962,7 @@ test_fs_sect_find(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; memset(&state, 0, sizeof(frspace_state_t)); @@ -993,7 +993,7 @@ test_fs_sect_find(hid_t fapl) (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; if (frsp->nclasses != nclasses) TEST_ERROR; @@ -1120,7 +1120,7 @@ test_fs_sect_find(hid_t fapl) (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; if (frsp->nclasses != nclasses) TEST_ERROR; @@ -1199,7 +1199,7 @@ test_fs_sect_find(hid_t fapl) (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; if (frsp->nclasses != nclasses) TEST_ERROR; @@ -1349,7 +1349,7 @@ test_fs_sect_merge(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* @@ -1478,7 +1478,7 @@ test_fs_sect_merge(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* @@ -1581,7 +1581,7 @@ test_fs_sect_merge(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* @@ -1827,7 +1827,7 @@ test_fs_sect_shrink(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* @@ -1929,7 +1929,7 @@ test_fs_sect_shrink(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* @@ -2029,7 +2029,7 @@ test_fs_sect_shrink(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* @@ -2171,7 +2171,7 @@ test_fs_sect_change_class(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* @@ -2275,7 +2275,7 @@ test_fs_sect_change_class(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* @@ -2459,7 +2459,7 @@ test_fs_sect_extend(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* @@ -2536,7 +2536,7 @@ test_fs_sect_extend(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* @@ -2610,7 +2610,7 @@ test_fs_sect_extend(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* @@ -2685,7 +2685,7 @@ test_fs_sect_extend(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; /* @@ -2818,7 +2818,7 @@ test_fs_sect_iterate(hid_t fapl) (hsize_t)FSPACE_THRHD_DEF, (hsize_t)FSPACE_ALIGN_DEF))) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_addr)) + if (!H5_addr_defined(fs_addr)) TEST_ERROR; for (i = 1; i <= NUM_SECTIONS; i++) { diff --git a/test/gheap.c b/test/gheap.c index 071c44b..6b02c98 100644 --- a/test/gheap.c +++ b/test/gheap.c @@ -103,7 +103,7 @@ test_1(hid_t fapl) HDputs(" Unable to insert object into global heap"); nerrors++; } - else if (u && H5F_addr_gt(obj[u - 1].addr, obj[u].addr)) { + else if (u && H5_addr_gt(obj[u - 1].addr, obj[u].addr)) { H5_FAILED(); HDputs(" Collection addresses are not monotonically increasing"); nerrors++; diff --git a/test/links.c b/test/links.c index e137945..154ae30 100644 --- a/test/links.c +++ b/test/links.c @@ -2165,7 +2165,7 @@ cklinks_deprec(hid_t fapl, hbool_t new_format) printf(" %d: Unexpected object type should have been a dataset\n", __LINE__); TEST_ERROR; } /* end if */ - if (H5F_addr_ne(oinfo1.addr, oinfo2.addr)) { + if (H5_addr_ne(oinfo1.addr, oinfo2.addr)) { H5_FAILED(); HDputs(" Hard link test failed. Link seems not to point to the "); HDputs(" expected file location."); @@ -2210,7 +2210,7 @@ cklinks_deprec(hid_t fapl, hbool_t new_format) printf(" %d: Unexpected object type should have been a dataset\n", __LINE__); TEST_ERROR; } /* end if */ - if (H5F_addr_ne(oinfo1.addr, oinfo2.addr)) { + if (H5_addr_ne(oinfo1.addr, oinfo2.addr)) { H5_FAILED(); HDputs(" Soft link test failed. Link seems not to point to the "); HDputs(" expected file location."); @@ -5377,7 +5377,7 @@ link_info_by_idx_old_deprec(hid_t fapl) if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, H5_ITER_INC, (hsize_t)u, &linfo, H5P_DEFAULT) < 0) TEST_ERROR; - if (H5F_addr_ne(linfo.u.address, objno[u])) + if (H5_addr_ne(linfo.u.address, objno[u])) TEST_ERROR; } /* end if */ else { @@ -5400,7 +5400,7 @@ link_info_by_idx_old_deprec(hid_t fapl) if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, H5_ITER_NATIVE, (hsize_t)u, &linfo, H5P_DEFAULT) < 0) TEST_ERROR; - if (H5F_addr_ne(linfo.u.address, objno[u])) + if (H5_addr_ne(linfo.u.address, objno[u])) TEST_ERROR; } /* end if */ else { @@ -5429,7 +5429,7 @@ link_info_by_idx_old_deprec(hid_t fapl) if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, H5_ITER_DEC, (hsize_t)u, &linfo, H5P_DEFAULT) < 0) TEST_ERROR; - if (H5F_addr_ne(linfo.u.address, objno[dec_u])) + if (H5_addr_ne(linfo.u.address, objno[dec_u])) TEST_ERROR; } /* end if */ else { @@ -6007,11 +6007,11 @@ delete_by_idx_old_deprec(hid_t fapl) if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, order, (hsize_t)0, &linfo, H5P_DEFAULT) < 0) TEST_ERROR; if (order == H5_ITER_INC) { - if (H5F_addr_ne(linfo.u.address, objno[u + 1])) + if (H5_addr_ne(linfo.u.address, objno[u + 1])) TEST_ERROR; } /* end if */ else { - if (H5F_addr_ne(linfo.u.address, objno[dec_u])) + if (H5_addr_ne(linfo.u.address, objno[dec_u])) TEST_ERROR; } /* end else */ @@ -6081,11 +6081,11 @@ delete_by_idx_old_deprec(hid_t fapl) if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, order, (hsize_t)u, &linfo, H5P_DEFAULT) < 0) TEST_ERROR; if (order == H5_ITER_INC) { - if (H5F_addr_ne(linfo.u.address, objno[(u * 2) + 1])) + if (H5_addr_ne(linfo.u.address, objno[(u * 2) + 1])) TEST_ERROR; } /* end if */ else { - if (H5F_addr_ne(linfo.u.address, objno[dec_u])) + if (H5_addr_ne(linfo.u.address, objno[dec_u])) TEST_ERROR; } /* end else */ @@ -6115,11 +6115,11 @@ delete_by_idx_old_deprec(hid_t fapl) if (H5Lget_info_by_idx1(group_id, ".", H5_INDEX_NAME, order, (hsize_t)0, &linfo, H5P_DEFAULT) < 0) TEST_ERROR; if (order == H5_ITER_INC) { - if (H5F_addr_ne(linfo.u.address, objno[(u * 2) + 3])) + if (H5_addr_ne(linfo.u.address, objno[(u * 2) + 3])) TEST_ERROR; } /* end if */ else { - if (H5F_addr_ne(linfo.u.address, objno[dec_u])) + if (H5_addr_ne(linfo.u.address, objno[dec_u])) TEST_ERROR; } /* end else */ @@ -6208,7 +6208,7 @@ link_iterate_deprec_cb(hid_t group_id, const char *link_name, const H5L_info1_t return H5_ITER_ERROR; if (info->cset != my_info.cset) return H5_ITER_ERROR; - if (H5F_addr_ne(info->u.address, my_info.u.address)) + if (H5_addr_ne(info->u.address, my_info.u.address)) return H5_ITER_ERROR; } /* end if */ @@ -6704,7 +6704,7 @@ link_iterate_old_deprec_cb(hid_t group_id, const char *link_name, const H5L_info return H5_ITER_ERROR; if (info->cset != my_info.cset) return H5_ITER_ERROR; - if (H5F_addr_ne(info->u.address, my_info.u.address)) + if (H5_addr_ne(info->u.address, my_info.u.address)) return H5_ITER_ERROR; } /* end if */ @@ -999,7 +999,7 @@ test_mf_tmp(const char *env_h5_drvr, hid_t fapl, hbool_t new_format) check_addr = H5MF_alloc_tmp(f, (hsize_t)(maxaddr / 3)); } H5E_END_TRY; - if (H5F_addr_defined(check_addr)) + if (H5_addr_defined(check_addr)) TEST_ERROR; /* Test that pushing normal space allocation into temporary space fails */ @@ -1008,7 +1008,7 @@ test_mf_tmp(const char *env_h5_drvr, hid_t fapl, hbool_t new_format) check_addr = H5MF_alloc(f, H5FD_MEM_DRAW, (hsize_t)(maxaddr / 3)); } H5E_END_TRY; - if (H5F_addr_defined(check_addr)) + if (H5_addr_defined(check_addr)) TEST_ERROR; /* Free the normal block (so the file doesn't blow up to a huge size) */ @@ -6401,7 +6401,7 @@ test_mf_fs_persist_split(void) FAIL_STACK_ERROR; /* Verify that the H5FD_MEM_SUPER free-space manager is there */ - if (!H5F_addr_defined(f->shared->fs_addr[type])) + if (!H5_addr_defined(f->shared->fs_addr[type])) TEST_ERROR; /* Start up H5FD_MEM_SUPER free-space manager */ @@ -6425,7 +6425,7 @@ test_mf_fs_persist_split(void) TEST_ERROR; /* Verify that the free-space manager for H5FD_MEM_DRAW is there */ - if (!H5F_addr_defined(f->shared->fs_addr[stype])) + if (!H5_addr_defined(f->shared->fs_addr[stype])) TEST_ERROR; /* Start up H5FD_MEM_DRAW free-space manager */ @@ -6485,11 +6485,11 @@ test_mf_fs_persist_split(void) FAIL_STACK_ERROR; /* Verify that the free-space manager for H5FD_MEM_DRAW is not there */ - if (H5F_addr_defined(f->shared->fs_addr[stype])) + if (H5_addr_defined(f->shared->fs_addr[stype])) TEST_ERROR; /* Verify that the free-space manager for H5FD_MEM_SUPER is there */ - if (!H5F_addr_defined(f->shared->fs_addr[type])) + if (!H5_addr_defined(f->shared->fs_addr[type])) TEST_ERROR; /* Start up H5FD_MEM_SUPER free-space manager */ @@ -6529,7 +6529,7 @@ test_mf_fs_persist_split(void) FAIL_STACK_ERROR; /* Verify that the H5FD_MEM_SUPER free-space manager is there */ - if (!H5F_addr_defined(f->shared->fs_addr[type])) + if (!H5_addr_defined(f->shared->fs_addr[type])) TEST_ERROR; /* Start up H5FD_MEM_SUPER free-space manager */ @@ -6719,7 +6719,7 @@ test_mf_fs_persist_multi(void) FAIL_STACK_ERROR; /* Verify that the H5FD_MEM_SUPER free-space manager is there */ - if (!H5F_addr_defined(f->shared->fs_addr[type])) + if (!H5_addr_defined(f->shared->fs_addr[type])) TEST_ERROR; /* Start up H5FD_MEM_SUPER free-space manager */ @@ -6743,7 +6743,7 @@ test_mf_fs_persist_multi(void) TEST_ERROR; /* Verify that the free-space manager for H5FD_MEM_DRAW is there */ - if (!H5F_addr_defined(f->shared->fs_addr[stype])) + if (!H5_addr_defined(f->shared->fs_addr[stype])) TEST_ERROR; /* Start up H5FD_MEM_DRAW free-space manager */ @@ -6801,7 +6801,7 @@ test_mf_fs_persist_multi(void) FAIL_STACK_ERROR; /* Verify that the free-space manager for H5FD_MEM_SUPER is there */ - if (!H5F_addr_defined(f->shared->fs_addr[type])) + if (!H5_addr_defined(f->shared->fs_addr[type])) TEST_ERROR; /* Start up H5FD_MEM_SUPER free-space manager */ @@ -6823,11 +6823,11 @@ test_mf_fs_persist_multi(void) TEST_ERROR; /* Verify that the free-space manager for H5FD_MEM_DRAW is not there */ - if (H5F_addr_defined(f->shared->fs_addr[stype])) + if (H5_addr_defined(f->shared->fs_addr[stype])) TEST_ERROR; /* Verify that the free-space manager for H5FD_MEM_BTREE is there */ - if (!H5F_addr_defined(f->shared->fs_addr[btype])) + if (!H5_addr_defined(f->shared->fs_addr[btype])) TEST_ERROR; /* Start up H5FD_MEM_BTREE free-space manager */ @@ -6867,7 +6867,7 @@ test_mf_fs_persist_multi(void) FAIL_STACK_ERROR; /* If H5FD_MEM_SUPER is there, should not find block #1 & #3 */ - if (H5F_addr_defined(f->shared->fs_addr[type])) { + if (H5_addr_defined(f->shared->fs_addr[type])) { /* Start up H5FD_MEM_SUPER free-space manager */ if (H5MF__open_fstype(f, (H5F_mem_page_t)type) < 0) FAIL_STACK_ERROR; @@ -6886,7 +6886,7 @@ test_mf_fs_persist_multi(void) } /* Verify that the H5FD_MEM_GHEAP free-space manager is there */ - if (!H5F_addr_defined(f->shared->fs_addr[gtype])) + if (!H5_addr_defined(f->shared->fs_addr[gtype])) TEST_ERROR; /* Start up H5FD_MEM_GHEAP free-space manager */ @@ -7021,7 +7021,7 @@ test_mf_fs_persist(const char *env_h5_drvr, hid_t fapl, hbool_t new_format) H5MF__alloc_to_fs_type(f->shared, type, TBLOCK_SIZE6, (H5F_mem_page_t *)&tt); /* Verify that H5FD_MEM_SUPER free-space manager is there */ - if (!H5F_addr_defined(f->shared->fs_addr[tt])) + if (!H5_addr_defined(f->shared->fs_addr[tt])) TEST_ERROR; /* Start up H5FD_MEM_SUPER free-space manager */ @@ -7064,7 +7064,7 @@ test_mf_fs_persist(const char *env_h5_drvr, hid_t fapl, hbool_t new_format) FAIL_STACK_ERROR; /* Verify that H5FD_MEM_SUPER free-space manager is there */ - if (!H5F_addr_defined(f->shared->fs_addr[tt])) + if (!H5_addr_defined(f->shared->fs_addr[tt])) TEST_ERROR; /* Retrieve block #5 from H5FD_MEM_SUPER free-space manager */ @@ -7199,7 +7199,7 @@ test_mf_fs_gone(const char *env_h5_drvr, hid_t fapl, hbool_t new_format) H5MF__alloc_to_fs_type(f->shared, type, TBLOCK_SIZE4, (H5F_mem_page_t *)&fs_type); /* Verify that the H5FD_MEM_SUPER free-space manager is not there */ - if (H5F_addr_defined(f->shared->fs_addr[fs_type])) + if (H5_addr_defined(f->shared->fs_addr[fs_type])) TEST_ERROR; /* Put block #3 to H5FD_MEM_SUPER free-space manager */ @@ -7218,7 +7218,7 @@ test_mf_fs_gone(const char *env_h5_drvr, hid_t fapl, hbool_t new_format) FAIL_STACK_ERROR; /* Verify that H5FD_MEM_SUPER free-space manager is there */ - if (!H5F_addr_defined(f->shared->fs_addr[fs_type])) + if (!H5_addr_defined(f->shared->fs_addr[fs_type])) TEST_ERROR; /* Start up H5FD_MEM_SUPER free-space manager */ @@ -7230,7 +7230,7 @@ test_mf_fs_gone(const char *env_h5_drvr, hid_t fapl, hbool_t new_format) if (H5FS_stat_info(f, f->shared->fs_man[fs_type], &fs_stat) < 0) FAIL_STACK_ERROR; - if (!H5F_addr_defined(fs_stat.addr)) + if (!H5_addr_defined(fs_stat.addr)) TEST_ERROR; if (fs_stat.tot_space < TBLOCK_SIZE3) @@ -7258,7 +7258,7 @@ test_mf_fs_gone(const char *env_h5_drvr, hid_t fapl, hbool_t new_format) if (NULL == (f = (H5F_t *)H5VL_object(file))) FAIL_STACK_ERROR; /* Verify that the H5FD_MEM_SUPER free-space manager is not there */ - if (H5F_addr_defined(f->shared->fs_addr[fs_type])) + if (H5_addr_defined(f->shared->fs_addr[fs_type])) TEST_ERROR; /* Closing */ @@ -7427,7 +7427,7 @@ test_mf_strat_thres_persist(const char *env_h5_drvr, hid_t fapl, hbool_t new_for } } else { - if (H5F_addr_defined(f->shared->fs_addr[tt])) + if (H5_addr_defined(f->shared->fs_addr[tt])) TEST_ERROR; } @@ -7617,7 +7617,7 @@ test_mf_strat_thres_gone(const char *env_h5_drvr, hid_t fapl, hbool_t new_format /* Free-space manager should be empty */ if (!(fs_type == H5F_FSPACE_STRATEGY_PAGE && fs_persist)) - if (H5F_addr_defined(f->shared->fs_addr[tt])) + if (H5_addr_defined(f->shared->fs_addr[tt])) TEST_ERROR; /* Closing */ @@ -7933,13 +7933,13 @@ test_page_alloc_xfree(const char *env_h5_drvr, hid_t fapl) /* Verify that the large generic manager is there */ H5MF__alloc_to_fs_type(f->shared, H5FD_MEM_DRAW, TBLOCK_SIZE5000, (H5F_mem_page_t *)&fs_type); - if (!H5F_addr_defined(f->shared->fs_addr[fs_type])) + if (!H5_addr_defined(f->shared->fs_addr[fs_type])) TEST_ERROR; /* Verify that the small metadata manager is there */ H5MF__alloc_to_fs_type(f->shared, H5FD_MEM_OHDR, f->shared->fs_page_size - 1, (H5F_mem_page_t *)&fs_type); - if (!H5F_addr_defined(f->shared->fs_addr[fs_type])) + if (!H5_addr_defined(f->shared->fs_addr[fs_type])) TEST_ERROR; /* Set up to use the small metadata manager */ @@ -7957,7 +7957,7 @@ test_page_alloc_xfree(const char *env_h5_drvr, hid_t fapl) TEST_ERROR; /* Verify that the small raw data manager is there */ - if (!H5F_addr_defined(f->shared->fs_addr[H5F_MEM_PAGE_DRAW])) + if (!H5_addr_defined(f->shared->fs_addr[H5F_MEM_PAGE_DRAW])) TEST_ERROR; /* Set up to use the small raw data manager */ @@ -8555,7 +8555,7 @@ test_page_large(const char *env_h5_drvr, hid_t fapl) /* Allocate a large data block with gaddr3--should be on another page */ /* Allocate 2 pages + 3808 bytes; 288 bytes in free-space manager */ gaddr3 = H5MF_alloc(f, H5FD_MEM_DRAW, (hsize_t)TBLOCK_SIZE12000); - if (!H5F_addr_defined(gaddr3)) + if (!H5_addr_defined(gaddr3)) TEST_ERROR; /* Free the block with gaddr2 */ |