summaryrefslogtreecommitdiffstats
path: root/test/btree2.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/btree2.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/btree2.c')
-rw-r--r--test/btree2.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/btree2.c b/test/btree2.c
index d8abc84..131f9cb 100644
--- a/test/btree2.c
+++ b/test/btree2.c
@@ -104,7 +104,7 @@ create_file(hid_t *file, H5F_t **f, hid_t fapl)
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 */
@@ -2806,7 +2806,7 @@ HDfprintf(stderr,"curr_time=%lu\n",(unsigned long)curr_time);
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 */
@@ -2845,7 +2845,7 @@ HDfprintf(stderr,"curr_time=%lu\n",(unsigned long)curr_time);
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 */
@@ -6375,7 +6375,7 @@ gen_l4_btree2(const char *filename, hid_t fapl, const H5B2_create_t *cparam,
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 */
@@ -6531,7 +6531,7 @@ HDfprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
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 */
@@ -6627,7 +6627,7 @@ HDfprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
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 */
@@ -6716,7 +6716,7 @@ HDfprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
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 */
@@ -6802,7 +6802,7 @@ HDfprintf(stderr, "curr_time = %lu\n", (unsigned long)curr_time);
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 */
@@ -7153,7 +7153,7 @@ test_delete(hid_t fapl, const H5B2_create_t *cparam)
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 */
@@ -7198,7 +7198,7 @@ test_delete(hid_t fapl, const H5B2_create_t *cparam)
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 */
@@ -7256,7 +7256,7 @@ test_delete(hid_t fapl, const H5B2_create_t *cparam)
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 */
@@ -7314,7 +7314,7 @@ test_delete(hid_t fapl, const H5B2_create_t *cparam)
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 */