summaryrefslogtreecommitdiffstats
path: root/test/tsohm.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-08-28 15:02:54 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-08-28 15:02:54 (GMT)
commitea343ef85416b42f68f28fb1024702c6726f7eea (patch)
treed5c401bf83f7f5578df06c54f9fd9fb198732ed2 /test/tsohm.c
parenteb16d8bc2b2f37c7a1d75fe7bf5258eba21515b2 (diff)
downloadhdf5-ea343ef85416b42f68f28fb1024702c6726f7eea.zip
hdf5-ea343ef85416b42f68f28fb1024702c6726f7eea.tar.gz
hdf5-ea343ef85416b42f68f28fb1024702c6726f7eea.tar.bz2
[svn-r14115] Description:
Remove all plain calls to H5Gopen() from source, replacing them with either H5Gopen2(). Add test for H5Gopen1(). Reformatted several pieces of code, to clean them up. Tested on: FreeBSD/32 6.2 (duty) FreeBSD/64 6.2 (liberty) Linux/32 2.6 (kagiso) Linux/64 2.6 (smirom) Solaris/32 5.10 (linew) Mac OS X/32 10.4.10 (amazon)
Diffstat (limited to 'test/tsohm.c')
-rw-r--r--test/tsohm.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/test/tsohm.c b/test/tsohm.c
index 7948443..16acf71 100644
--- a/test/tsohm.c
+++ b/test/tsohm.c
@@ -1549,8 +1549,8 @@ size2_helper(hid_t fcpl_id, int test_file_closing, size2_helper_struct *ret_size
CHECK_I(ret, "H5Gclose");
file_id = close_reopen_file(file_id, FILENAME, H5P_DEFAULT);
CHECK_I(file_id, "H5Fopen");
- group_id = H5Gopen(file_id, "group");
- CHECK_I(group_id, "H5Gopen");
+ group_id = H5Gopen2(file_id, "group", H5P_DEFAULT);
+ CHECK_I(group_id, "H5Gopen2");
}
}
@@ -1603,8 +1603,8 @@ size2_helper(hid_t fcpl_id, int test_file_closing, size2_helper_struct *ret_size
CHECK_I(ret, "H5Gclose");
file_id = close_reopen_file(file_id, FILENAME, H5P_DEFAULT);
CHECK_I(file_id, "H5Fopen");
- group_id = H5Gopen(file_id, "interleaved group");
- CHECK_I(group_id, "H5Gopen");
+ group_id = H5Gopen2(file_id, "interleaved group", H5P_DEFAULT);
+ CHECK_I(group_id, "H5Gopen2");
}
}
@@ -1620,8 +1620,8 @@ size2_helper(hid_t fcpl_id, int test_file_closing, size2_helper_struct *ret_size
*/
file_id = H5Fopen(FILENAME, H5F_ACC_RDWR, H5P_DEFAULT);
CHECK_I(file_id, "H5Fopen");
- group_id = H5Gopen(file_id, "group");
- CHECK_I(group_id, "H5Gopen");
+ group_id = H5Gopen2(file_id, "group", H5P_DEFAULT);
+ CHECK_I(group_id, "H5Gopen2");
strcpy(attr_name, "00 index");
@@ -1646,8 +1646,8 @@ size2_helper(hid_t fcpl_id, int test_file_closing, size2_helper_struct *ret_size
CHECK_I(ret, "H5Gclose");
file_id = close_reopen_file(file_id, FILENAME, H5P_DEFAULT);
CHECK_I(file_id, "H5Fopen");
- group_id = H5Gopen(file_id, "group");
- CHECK_I(group_id, "H5Gopen");
+ group_id = H5Gopen2(file_id, "group", H5P_DEFAULT);
+ CHECK_I(group_id, "H5Gopen2");
}
}
@@ -1662,8 +1662,8 @@ size2_helper(hid_t fcpl_id, int test_file_closing, size2_helper_struct *ret_size
/* Create all of the attributes again on the other group */
file_id = H5Fopen(FILENAME, H5F_ACC_RDWR, H5P_DEFAULT);
CHECK_I(file_id, "H5Fopen");
- group_id = H5Gopen(file_id, "interleaved group");
- CHECK_I(group_id, "H5Gopen");
+ group_id = H5Gopen2(file_id, "interleaved group", H5P_DEFAULT);
+ CHECK_I(group_id, "H5Gopen2");
for(x=0; x<NUM_ATTRIBUTES; ++x)
{
@@ -1686,8 +1686,8 @@ size2_helper(hid_t fcpl_id, int test_file_closing, size2_helper_struct *ret_size
CHECK_I(ret, "H5Gclose");
file_id = close_reopen_file(file_id, FILENAME, H5P_DEFAULT);
CHECK_I(file_id, "H5Fopen");
- group_id = H5Gopen(file_id, "interleaved group");
- CHECK_I(group_id, "H5Gopen");
+ group_id = H5Gopen2(file_id, "interleaved group", H5P_DEFAULT);
+ CHECK_I(group_id, "H5Gopen2");
}
}
/* Close file and get its size now */
@@ -1784,8 +1784,8 @@ static void size2_verify(void)
}
/* Get property lists from second batch of datasets */
- group1_id = H5Gopen(file_id, "group");
- CHECK_I(group1_id, "H5Gopen");
+ group1_id = H5Gopen2(file_id, "group", H5P_DEFAULT);
+ CHECK_I(group1_id, "H5Gopen2");
for(x=0; x<NUM_DATASETS; ++x)
{
dset_id = H5Dopen(group1_id, DSETNAME[x]);
@@ -1814,8 +1814,8 @@ static void size2_verify(void)
CHECK_I(ret, "H5Gclose");
/* Get property lists from interleaved group of datasets */
- group1_id = H5Gopen(file_id, "interleaved group");
- CHECK_I(group1_id, "H5Gopen");
+ group1_id = H5Gopen2(file_id, "interleaved group", H5P_DEFAULT);
+ CHECK_I(group1_id, "H5Gopen2");
for(x = 0; x < NUM_DATASETS; x += 2) {
/* First "type 1" dataset */
dset_id = H5Dopen(group1_id, DSETNAME[x]);
@@ -1876,10 +1876,10 @@ static void size2_verify(void)
CHECK_I(ret, "H5Tset_size");
/* Read attributes on both groups and verify that they are correct */
- group1_id = H5Gopen(file_id, "group");
- CHECK_I(group1_id, "H5Gopen");
- group2_id = H5Gopen(file_id, "interleaved group");
- CHECK_I(group2_id, "H5Gopen");
+ group1_id = H5Gopen2(file_id, "group", H5P_DEFAULT);
+ CHECK_I(group1_id, "H5Gopen2");
+ group2_id = H5Gopen2(file_id, "interleaved group", H5P_DEFAULT);
+ CHECK_I(group2_id, "H5Gopen2");
HDmemset(attr_string, 0, NAME_BUF_SIZE);
HDmemset(attr_correct_string, 0, NAME_BUF_SIZE);