summaryrefslogtreecommitdiffstats
path: root/test/tattr.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/tattr.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/tattr.c')
-rw-r--r--test/tattr.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/tattr.c b/test/tattr.c
index 969a0d9..b836d98 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -199,8 +199,8 @@ test_attr_basic_write(hid_t fapl)
CHECK(ret, FAIL, "H5Aclose");
/* Open the root group */
- group = H5Gopen(fid1, "/");
- CHECK(group, FAIL, "H5Gopen");
+ group = H5Gopen2(fid1, "/", H5P_DEFAULT);
+ CHECK(group, FAIL, "H5Gopen2");
/* Open attribute again */
attr = H5Aopen_name(group, ATTR1_NAME);
@@ -432,8 +432,8 @@ test_attr_basic_read(hid_t fapl)
CHECK(ret, FAIL, "H5Dclose");
/* Open the group */
- group = H5Gopen(fid1,GROUP1_NAME);
- CHECK(group, FAIL, "H5Gopen");
+ group = H5Gopen2(fid1, GROUP1_NAME, H5P_DEFAULT);
+ CHECK(group, FAIL, "H5Gopen2");
/* Verify the correct number of attributes */
ret=H5Aget_num_attrs(group);
@@ -3908,8 +3908,8 @@ test_attr_corder_create_reopen(hid_t fcpl, hid_t fapl)
CHECK(fid, FAIL, "H5Fopen");
/* Re-open group */
- gid = H5Gopen(fid, GROUP1_NAME);
- CHECK(gid, FAIL, "H5Gopen");
+ gid = H5Gopen2(fid, GROUP1_NAME, H5P_DEFAULT);
+ CHECK(gid, FAIL, "H5Gopen2");
/* Delete attribute */
ret = H5Adelete2(gid, ".", "attr-003", H5P_DEFAULT);
@@ -8121,8 +8121,8 @@ test_attr_bug1(hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Gclose");
/* Re-open first group */
- gid = H5Gopen(fid, GROUP1_NAME);
- CHECK(gid, FAIL, "H5Gopen");
+ gid = H5Gopen2(fid, GROUP1_NAME, H5P_DEFAULT);
+ CHECK(gid, FAIL, "H5Gopen2");
/* Create attribute on first group */
aid = H5Acreate(gid, ATTR7_NAME, H5T_NATIVE_DOUBLE, sid, H5P_DEFAULT);
@@ -8154,8 +8154,8 @@ test_attr_bug1(hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Gunlink");
/* Re-open first group */
- gid = H5Gopen(fid, GROUP1_NAME);
- CHECK(gid, FAIL, "H5Gopen");
+ gid = H5Gopen2(fid, GROUP1_NAME, H5P_DEFAULT);
+ CHECK(gid, FAIL, "H5Gopen2");
/* Create another attribute on first group */
aid = H5Acreate(gid, ATTR8_NAME, H5T_NATIVE_DOUBLE, sid, H5P_DEFAULT);
@@ -8176,8 +8176,8 @@ test_attr_bug1(hid_t fcpl, hid_t fapl)
CHECK(fid, FAIL, "H5Fopen");
/* Re-open first group */
- gid = H5Gopen(fid, GROUP1_NAME);
- CHECK(gid, FAIL, "H5Gopen");
+ gid = H5Gopen2(fid, GROUP1_NAME, H5P_DEFAULT);
+ CHECK(gid, FAIL, "H5Gopen2");
/* Delete first attribute */
ret = H5Adelete(gid, ATTR7_NAME);