summaryrefslogtreecommitdiffstats
path: root/test/fheap.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2012-03-12 21:50:25 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2012-03-12 21:50:25 (GMT)
commit90ec386c958859b73bc050eafa7d525df9dd618c (patch)
treecee070045fb0d2b1d0dacb9be421ca4198e27592 /test/fheap.c
parentc7b3e19329bb9f417b397d945c20b27c56a7420f (diff)
downloadhdf5-90ec386c958859b73bc050eafa7d525df9dd618c.zip
hdf5-90ec386c958859b73bc050eafa7d525df9dd618c.tar.gz
hdf5-90ec386c958859b73bc050eafa7d525df9dd618c.tar.bz2
[svn-r22056] - fix several bugs in id management
- update test cases that get the H5F_t struct to use H5I_object_verify instead of H5I_object because of the higher user level ID that is introduced - add some workarounds to take into consideration that the high level ID is not used everywhere at the moment - add a routine that translates from low level ids to high level ids
Diffstat (limited to 'test/fheap.c')
-rw-r--r--test/fheap.c140
1 files changed, 70 insertions, 70 deletions
diff --git a/test/fheap.c b/test/fheap.c
index 2cb8796..f2960a3 100644
--- a/test/fheap.c
+++ b/test/fheap.c
@@ -589,7 +589,7 @@ reopen_file(hid_t *file, H5F_t **f, const char *filename, hid_t fapl, hid_t dxpl
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (*f = (H5F_t *)H5I_object(*file)))
+ if(NULL == (*f = (H5F_t *)H5I_object_verify(*file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -640,7 +640,7 @@ open_heap(char *filename, hid_t fapl, hid_t dxpl, const H5HF_create_t *cparam,
/* Check for deleting the entire heap */
if(tparam->del_dir != FHEAP_DEL_HEAP) {
/* Get a pointer to the internal file object */
- if(NULL == (*f = (H5F_t *)H5I_object(*file)))
+ if(NULL == (*f = (H5F_t *)H5I_object_verify(*file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -682,7 +682,7 @@ open_heap(char *filename, hid_t fapl, hid_t dxpl, const H5HF_create_t *cparam,
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (*f = (H5F_t *)H5I_object(*file)))
+ if(NULL == (*f = (H5F_t *)H5I_object_verify(*file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -1852,7 +1852,7 @@ test_create(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t UNUSED *tparam
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -1969,7 +1969,7 @@ test_reopen(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t UNUSED *tparam
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -2012,7 +2012,7 @@ test_reopen(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t UNUSED *tparam
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -2118,7 +2118,7 @@ test_open_twice(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t UNUSED *tp
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -2170,7 +2170,7 @@ test_open_twice(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t UNUSED *tp
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f2 = (H5F_t *)H5I_object(file2)))
+ if(NULL == (f2 = (H5F_t *)H5I_object_verify(file2, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -2288,7 +2288,7 @@ test_delete_open(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t UNUSED *t
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -2361,7 +2361,7 @@ test_delete_open(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t UNUSED *t
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -2447,7 +2447,7 @@ test_id_limits(hid_t fapl, H5HF_create_t *cparam)
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -2790,7 +2790,7 @@ test_filtered_create(hid_t fapl, H5HF_create_t *cparam)
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -2833,7 +2833,7 @@ test_filtered_create(hid_t fapl, H5HF_create_t *cparam)
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -2913,7 +2913,7 @@ test_size(hid_t fapl, H5HF_create_t *cparam)
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -2967,7 +2967,7 @@ test_size(hid_t fapl, H5HF_create_t *cparam)
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -3056,7 +3056,7 @@ test_reopen_hdr(hid_t fapl, H5HF_create_t *cparam)
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file1)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file1, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -3100,7 +3100,7 @@ test_reopen_hdr(hid_t fapl, H5HF_create_t *cparam)
FAIL_STACK_ERROR
/* Get a pointer to the internal file object (file1) */
- if(NULL == (f = (H5F_t *)H5I_object(file1)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file1, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -3122,7 +3122,7 @@ test_reopen_hdr(hid_t fapl, H5HF_create_t *cparam)
/* Get a pointer to the internal file object (file2) */
- if(NULL == (f = (H5F_t *)H5I_object(file2)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file2, H5I_FILE)))
FAIL_STACK_ERROR
/* Reopen the heap */
@@ -3195,7 +3195,7 @@ test_man_insert_weird(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpa
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -3305,7 +3305,7 @@ test_man_insert_first(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpa
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -3406,7 +3406,7 @@ test_man_insert_second(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tp
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -3503,7 +3503,7 @@ test_man_insert_root_mult(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -3602,7 +3602,7 @@ test_man_insert_force_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_par
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -3708,7 +3708,7 @@ test_man_insert_fill_second(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -3815,7 +3815,7 @@ test_man_insert_third_direct(hid_t fapl, H5HF_create_t *cparam, fheap_test_param
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -3926,7 +3926,7 @@ test_man_fill_first_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *t
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -4022,7 +4022,7 @@ test_man_start_second_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -4125,7 +4125,7 @@ test_man_fill_second_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -4226,7 +4226,7 @@ test_man_start_third_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -4337,7 +4337,7 @@ test_man_fill_fourth_row(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -4434,7 +4434,7 @@ test_man_fill_all_root_direct(hid_t fapl, H5HF_create_t *cparam, fheap_test_para
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -4530,7 +4530,7 @@ test_man_first_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -4632,7 +4632,7 @@ test_man_second_direct_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fhe
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -4742,7 +4742,7 @@ test_man_fill_first_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -4845,7 +4845,7 @@ test_man_second_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -4956,7 +4956,7 @@ test_man_fill_second_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -5064,7 +5064,7 @@ test_man_fill_recursive_indirect_row(hid_t fapl, H5HF_create_t *cparam, fheap_te
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Create absolute heap */
@@ -5162,7 +5162,7 @@ test_man_start_2nd_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_t
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -5271,7 +5271,7 @@ test_man_recursive_indirect_two_deep(hid_t fapl, H5HF_create_t *cparam, fheap_te
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -5374,7 +5374,7 @@ test_man_start_3rd_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_t
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -5484,7 +5484,7 @@ test_man_fill_first_3rd_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fh
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -5595,7 +5595,7 @@ test_man_fill_3rd_recursive_indirect_row(hid_t fapl, H5HF_create_t *cparam, fhea
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -5702,7 +5702,7 @@ test_man_fill_all_3rd_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fhea
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -5810,7 +5810,7 @@ test_man_start_4th_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_t
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -5925,7 +5925,7 @@ test_man_fill_first_4th_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fh
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -6045,7 +6045,7 @@ test_man_fill_4th_recursive_indirect_row(hid_t fapl, H5HF_create_t *cparam, fhea
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -6157,7 +6157,7 @@ test_man_fill_all_4th_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fhea
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -6272,7 +6272,7 @@ test_man_start_5th_recursive_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_t
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -6406,7 +6406,7 @@ test_man_remove_bogus(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpa
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -6559,7 +6559,7 @@ test_man_remove_one(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpara
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -6600,7 +6600,7 @@ test_man_remove_one(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpara
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -6723,7 +6723,7 @@ test_man_remove_two(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpara
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -6764,7 +6764,7 @@ test_man_remove_two(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tpara
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -6916,7 +6916,7 @@ test_man_remove_one_larger(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -6957,7 +6957,7 @@ test_man_remove_one_larger(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -7085,7 +7085,7 @@ test_man_remove_two_larger(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -7126,7 +7126,7 @@ test_man_remove_two_larger(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -7329,7 +7329,7 @@ test_man_remove_three_larger(hid_t fapl, H5HF_create_t *cparam, fheap_test_param
TEST_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -7370,7 +7370,7 @@ test_man_remove_three_larger(hid_t fapl, H5HF_create_t *cparam, fheap_test_param
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -13720,7 +13720,7 @@ test_filtered_huge(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -14900,7 +14900,7 @@ test_filtered_man_root_direct(hid_t fapl, H5HF_create_t *cparam, fheap_test_para
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -15086,7 +15086,7 @@ test_filtered_man_root_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -15150,7 +15150,7 @@ test_filtered_man_root_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -15186,7 +15186,7 @@ test_filtered_man_root_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -15223,7 +15223,7 @@ test_filtered_man_root_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -15259,7 +15259,7 @@ test_filtered_man_root_indirect(hid_t fapl, H5HF_create_t *cparam, fheap_test_pa
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -15900,7 +15900,7 @@ test_write(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -15967,7 +15967,7 @@ test_write(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -16132,7 +16132,7 @@ test_bug1(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */
@@ -16162,7 +16162,7 @@ test_bug1(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam)
FAIL_STACK_ERROR
/* Get a pointer to the internal file object */
- if(NULL == (f = (H5F_t *)H5I_object(file)))
+ if(NULL == (f = (H5F_t *)H5I_object_verify(file, H5I_FILE)))
FAIL_STACK_ERROR
/* Ignore metadata tags in the file's cache */