summaryrefslogtreecommitdiffstats
path: root/test/tattr.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-10-08 19:59:36 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-10-08 19:59:36 (GMT)
commit16683943c6edb42f9129cc5d6c8f340c74014dad (patch)
treed1ed13b0b7677e56d4253b4fe5e0640f851e27ca /test/tattr.c
parentd3ee3988b68292524b3a893b9db55c074f4b9e87 (diff)
downloadhdf5-16683943c6edb42f9129cc5d6c8f340c74014dad.zip
hdf5-16683943c6edb42f9129cc5d6c8f340c74014dad.tar.gz
hdf5-16683943c6edb42f9129cc5d6c8f340c74014dad.tar.bz2
[svn-r14193] Description:
Make H5Dopen versioned and change all internal usage to use H5Dopen2 Add simple regression test for H5Dopen1 Tested on: FreeBSD/32 6.2 (duty) in debug mode FreeBSD/64 6.2 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (kagiso) w/PGI compilers, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (smirom) w/default API=1.6.x, w/C++ & FORTRAN, in production mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, in production mode Mac OS X/32 10.4.10 (amazon) in debug mode
Diffstat (limited to 'test/tattr.c')
-rw-r--r--test/tattr.c96
1 files changed, 48 insertions, 48 deletions
diff --git a/test/tattr.c b/test/tattr.c
index 3e1110c..4f1e211 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -406,8 +406,8 @@ test_attr_basic_read(hid_t fapl)
CHECK(fid1, FAIL, "H5Fopen");
/* Open the dataset */
- dataset = H5Dopen(fid1, DSET1_NAME);
- CHECK(dataset, FAIL, "H5Dopen");
+ dataset = H5Dopen2(fid1, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dataset, FAIL, "H5Dopen2");
/* Verify the correct number of attributes */
ret = H5Oget_info(dataset, ".", &oinfo, H5P_DEFAULT);
@@ -777,8 +777,8 @@ test_attr_compound_read(hid_t fapl)
CHECK(fid1, FAIL, "H5Fopen");
/* Open the dataset */
- dataset = H5Dopen(fid1, DSET1_NAME);
- CHECK(dataset, FAIL, "H5Dopen");
+ dataset = H5Dopen2(fid1, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dataset, FAIL, "H5Dopen2");
/* Verify the correct number of attributes */
ret = H5Oget_info(dataset, ".", &oinfo, H5P_DEFAULT);
@@ -980,8 +980,8 @@ test_attr_scalar_read(hid_t fapl)
CHECK(fid1, FAIL, "H5Fopen");
/* Open the dataset */
- dataset = H5Dopen(fid1, DSET1_NAME);
- CHECK(dataset, FAIL, "H5Dopen");
+ dataset = H5Dopen2(fid1, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dataset, FAIL, "H5Dopen2");
/* Verify the correct number of attributes */
ret = H5Oget_info(dataset, ".", &oinfo, H5P_DEFAULT);
@@ -1182,8 +1182,8 @@ test_attr_mult_read(hid_t fapl)
CHECK(fid1, FAIL, "H5Fopen");
/* Open the dataset */
- dataset = H5Dopen(fid1, DSET1_NAME);
- CHECK(dataset, FAIL, "H5Dopen");
+ dataset = H5Dopen2(fid1, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dataset, FAIL, "H5Dopen2");
/* Verify the correct number of attributes */
ret = H5Oget_info(dataset, ".", &oinfo, H5P_DEFAULT);
@@ -1457,8 +1457,8 @@ test_attr_iterate(hid_t fapl)
CHECK(ret, FAIL, "H5Dclose");
/* Open existing dataset w/attributes */
- dataset = H5Dopen(file, DSET1_NAME);
- CHECK(dataset, FAIL, "H5Dopen");
+ dataset = H5Dopen2(file, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dataset, FAIL, "H5Dopen2");
/* Verify the correct number of attributes */
ret = H5Oget_info(dataset, ".", &oinfo, H5P_DEFAULT);
@@ -1504,8 +1504,8 @@ test_attr_delete(hid_t fapl)
CHECK(fid1, FAIL, "H5Fopen");
/* Open the dataset */
- dataset = H5Dopen(fid1, DSET1_NAME);
- CHECK(dataset, FAIL, "H5Dopen");
+ dataset = H5Dopen2(fid1, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dataset, FAIL, "H5Dopen2");
/* Verify the correct number of attributes */
ret = H5Oget_info(dataset, ".", &oinfo, H5P_DEFAULT);
@@ -1729,8 +1729,8 @@ test_attr_dtype_shared(hid_t fapl)
CHECK(file_id, FAIL, "H5Fopen");
/* Open dataset */
- dset_id = H5Dopen(file_id, DSET1_NAME);
- CHECK(dset_id, FAIL, "H5Dopen");
+ dset_id = H5Dopen2(file_id, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dset_id, FAIL, "H5Dopen2");
/* Open attribute */
attr_id = H5Aopen(dset_id, ".", ATTR1_NAME, H5P_DEFAULT, H5P_DEFAULT);
@@ -2232,8 +2232,8 @@ test_attr_dense_delete(hid_t fcpl, hid_t fapl)
CHECK(fid, FAIL, "H5Fopen");
/* Open dataset */
- dataset = H5Dopen(fid, DSET1_NAME);
- CHECK(dataset, FAIL, "H5Dopen");
+ dataset = H5Dopen2(fid, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dataset, FAIL, "H5Dopen2");
/* Delete attributes until the attributes revert to compact storage again */
for(u--; u >= min_dense; u--) {
@@ -2414,8 +2414,8 @@ test_attr_dense_rename(hid_t fcpl, hid_t fapl)
CHECK(fid, FAIL, "H5Fopen");
/* Open dataset */
- dataset = H5Dopen(fid, DSET1_NAME);
- CHECK(dataset, FAIL, "H5Dopen");
+ dataset = H5Dopen2(fid, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dataset, FAIL, "H5Dopen2");
/* Verify renamed attributes */
for(u = 0; u < (max_compact * 2); u++) {
@@ -3151,8 +3151,8 @@ test_attr_null_space(hid_t fcpl, hid_t fapl)
CHECK(fid, FAIL, "H5Fopen");
/* Open dataset */
- dataset = H5Dopen(fid, DSET1_NAME);
- CHECK(dataset, FAIL, "H5Dopen");
+ dataset = H5Dopen2(fid, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dataset, FAIL, "H5Dopen2");
/* Open first attribute */
@@ -3299,8 +3299,8 @@ test_attr_deprec(hid_t fcpl, hid_t fapl)
CHECK(fid, FAIL, "H5Fopen");
/* Open dataset */
- dataset = H5Dopen(fid, DSET1_NAME);
- CHECK(dataset, FAIL, "H5Dopen");
+ dataset = H5Dopen2(fid, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dataset, FAIL, "H5Dopen2");
/* Get number of attributes */
@@ -3515,8 +3515,8 @@ test_attr_corder_create_basic(hid_t fcpl, hid_t fapl)
CHECK(fid, FAIL, "H5Fopen");
/* Open dataset created */
- dataset = H5Dopen(fid, DSET1_NAME);
- CHECK(dataset, FAIL, "H5Dopen");
+ dataset = H5Dopen2(fid, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dataset, FAIL, "H5Dopen2");
/* Check on dataset's attribute storage status */
is_empty = H5O_is_attr_empty_test(dataset);
@@ -3680,12 +3680,12 @@ test_attr_corder_create_compact(hid_t fcpl, hid_t fapl)
CHECK(fid, FAIL, "H5Fopen");
/* Open datasets created */
- dset1 = H5Dopen(fid, DSET1_NAME);
- CHECK(dset1, FAIL, "H5Dopen");
- dset2 = H5Dopen(fid, DSET2_NAME);
- CHECK(dset2, FAIL, "H5Dopen");
- dset3 = H5Dopen(fid, DSET3_NAME);
- CHECK(dset3, FAIL, "H5Dopen");
+ dset1 = H5Dopen2(fid, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dset1, FAIL, "H5Dopen2");
+ dset2 = H5Dopen2(fid, DSET2_NAME, H5P_DEFAULT);
+ CHECK(dset2, FAIL, "H5Dopen2");
+ dset3 = H5Dopen2(fid, DSET3_NAME, H5P_DEFAULT);
+ CHECK(dset3, FAIL, "H5Dopen2");
/* Work on all the datasets */
for(curr_dset = 0; curr_dset < NUM_DSETS; curr_dset++) {
@@ -3907,12 +3907,12 @@ test_attr_corder_create_dense(hid_t fcpl, hid_t fapl)
CHECK(fid, FAIL, "H5Fopen");
/* Open datasets created */
- dset1 = H5Dopen(fid, DSET1_NAME);
- CHECK(dset1, FAIL, "H5Dopen");
- dset2 = H5Dopen(fid, DSET2_NAME);
- CHECK(dset2, FAIL, "H5Dopen");
- dset3 = H5Dopen(fid, DSET3_NAME);
- CHECK(dset3, FAIL, "H5Dopen");
+ dset1 = H5Dopen2(fid, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dset1, FAIL, "H5Dopen2");
+ dset2 = H5Dopen2(fid, DSET2_NAME, H5P_DEFAULT);
+ CHECK(dset2, FAIL, "H5Dopen2");
+ dset3 = H5Dopen2(fid, DSET3_NAME, H5P_DEFAULT);
+ CHECK(dset3, FAIL, "H5Dopen2");
/* Work on all the datasets */
for(curr_dset = 0; curr_dset < NUM_DSETS; curr_dset++) {
@@ -4190,12 +4190,12 @@ test_attr_corder_transition(hid_t fcpl, hid_t fapl)
CHECK(fid, FAIL, "H5Fopen");
/* Open datasets created */
- dset1 = H5Dopen(fid, DSET1_NAME);
- CHECK(dset1, FAIL, "H5Dopen");
- dset2 = H5Dopen(fid, DSET2_NAME);
- CHECK(dset2, FAIL, "H5Dopen");
- dset3 = H5Dopen(fid, DSET3_NAME);
- CHECK(dset3, FAIL, "H5Dopen");
+ dset1 = H5Dopen2(fid, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dset1, FAIL, "H5Dopen2");
+ dset2 = H5Dopen2(fid, DSET2_NAME, H5P_DEFAULT);
+ CHECK(dset2, FAIL, "H5Dopen2");
+ dset3 = H5Dopen2(fid, DSET3_NAME, H5P_DEFAULT);
+ CHECK(dset3, FAIL, "H5Dopen2");
/* Work on all the datasets */
for(curr_dset = 0; curr_dset < NUM_DSETS; curr_dset++) {
@@ -4352,12 +4352,12 @@ test_attr_corder_transition(hid_t fcpl, hid_t fapl)
CHECK(fid, FAIL, "H5Fopen");
/* Open datasets created */
- dset1 = H5Dopen(fid, DSET1_NAME);
- CHECK(dset1, FAIL, "H5Dopen");
- dset2 = H5Dopen(fid, DSET2_NAME);
- CHECK(dset2, FAIL, "H5Dopen");
- dset3 = H5Dopen(fid, DSET3_NAME);
- CHECK(dset3, FAIL, "H5Dopen");
+ dset1 = H5Dopen2(fid, DSET1_NAME, H5P_DEFAULT);
+ CHECK(dset1, FAIL, "H5Dopen2");
+ dset2 = H5Dopen2(fid, DSET2_NAME, H5P_DEFAULT);
+ CHECK(dset2, FAIL, "H5Dopen2");
+ dset3 = H5Dopen2(fid, DSET3_NAME, H5P_DEFAULT);
+ CHECK(dset3, FAIL, "H5Dopen2");
/* Work on all the datasets */
for(curr_dset = 0; curr_dset < NUM_DSETS; curr_dset++) {