summaryrefslogtreecommitdiffstats
path: root/test/tfile.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/tfile.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/tfile.c')
-rw-r--r--test/tfile.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/tfile.c b/test/tfile.c
index 882061f..e477622 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -833,13 +833,13 @@ create_objects(hid_t fid1, hid_t fid2, hid_t *ret_did, hid_t *ret_gid1,
if(ret_gid1 != NULL)
*ret_gid1 = gid1;
- gid2 = H5Gopen(fid2, "/group");
- CHECK(gid2, FAIL, "H5Gopen");
+ gid2 = H5Gopen2(fid2, "/group", H5P_DEFAULT);
+ CHECK(gid2, FAIL, "H5Gopen2");
if(ret_gid2 != NULL)
*ret_gid2 = gid2;
- gid3 = H5Gopen(fid2, "/group");
- CHECK(gid3, FAIL, "H5Gopen");
+ gid3 = H5Gopen2(fid2, "/group", H5P_DEFAULT);
+ CHECK(gid3, FAIL, "H5Gopen2");
if(ret_gid3 != NULL)
*ret_gid3 = gid3;
}
@@ -917,8 +917,8 @@ test_get_file_id(void)
fid = H5Fopen(FILE4, H5F_ACC_RDWR, H5P_DEFAULT);
CHECK(fid, FAIL, "H5Fcreate");
- group_id = H5Gopen(fid, GRP_NAME);
- CHECK(group_id, FAIL, "H5Gopen");
+ group_id = H5Gopen2(fid, GRP_NAME, H5P_DEFAULT);
+ CHECK(group_id, FAIL, "H5Gopen2");
/* Test H5Iget_file_id() */
check_file_id(fid, group_id);
@@ -1446,15 +1446,15 @@ test_file_open_dot(void)
VERIFY(gid2, FAIL, "H5Gcreate2");
/* Open a group with no name using the file ID (should open the root group) */
- gid2 = H5Gopen(fid, ".");
- CHECK(gid2, FAIL, "H5Gopen");
+ gid2 = H5Gopen2(fid, ".", H5P_DEFAULT);
+ CHECK(gid2, FAIL, "H5Gopen2");
ret = H5Gclose(gid2);
CHECK(ret, FAIL, "H5Gclose");
/* Open a group with no name using the group ID (should open the group again) */
- gid2 = H5Gopen(gid, ".");
- CHECK(gid2, FAIL, "H5Gopen");
+ gid2 = H5Gopen2(gid, ".", H5P_DEFAULT);
+ CHECK(gid2, FAIL, "H5Gopen2");
ret = H5Gclose(gid2);
CHECK(ret, FAIL, "H5Gclose");
@@ -1695,10 +1695,10 @@ test_file_double_root_open(void)
file2_id = H5Fopen (FILE1, H5F_ACC_RDONLY, H5P_DEFAULT);
CHECK(file2_id, FAIL, "H5Fopen");
- grp1_id = H5Gopen(file1_id, "/");
- CHECK(grp1_id, FAIL, "H5Gopen");
- grp2_id = H5Gopen(file2_id, "/");
- CHECK(grp2_id, FAIL, "H5Gopen");
+ grp1_id = H5Gopen2(file1_id, "/", H5P_DEFAULT);
+ CHECK(grp1_id, FAIL, "H5Gopen2");
+ grp2_id = H5Gopen2(file2_id, "/", H5P_DEFAULT);
+ CHECK(grp2_id, FAIL, "H5Gopen2");
/* Note "assymetric" close order */
ret = H5Gclose(grp1_id);
@@ -1736,8 +1736,8 @@ test_file_double_group_open(void)
grp1_id = H5Gcreate2(file1_id, GRP_NAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
CHECK(grp1_id, FAIL, "H5Gcreate2");
- grp2_id = H5Gopen(file2_id, GRP_NAME);
- CHECK(grp2_id, FAIL, "H5Gopen");
+ grp2_id = H5Gopen2(file2_id, GRP_NAME, H5P_DEFAULT);
+ CHECK(grp2_id, FAIL, "H5Gopen2");
/* Note "assymetric" close order */
ret = H5Gclose(grp1_id);