summaryrefslogtreecommitdiffstats
path: root/test/tattr.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-10-30 19:03:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-10-30 19:03:28 (GMT)
commit8d71b4cbcdc7e184b7fdb110744cd9c7d0c4b508 (patch)
tree1792dd8d02dac6ff1b53ba4152b4cdf171d5d2c8 /test/tattr.c
parent0e06a92d0e1e129c46f27115f2b15ca2995ac59e (diff)
downloadhdf5-8d71b4cbcdc7e184b7fdb110744cd9c7d0c4b508.zip
hdf5-8d71b4cbcdc7e184b7fdb110744cd9c7d0c4b508.tar.gz
hdf5-8d71b4cbcdc7e184b7fdb110744cd9c7d0c4b508.tar.bz2
[svn-r14219] Description:
Change H5Arename2 -> H5Arename_by_name and un-deprecate H5Arename1 back to H5Arename. 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.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/test/tattr.c b/test/tattr.c
index 124d4a7..5bf24f4 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -258,8 +258,8 @@ test_attr_basic_write(hid_t fapl)
CHECK(ret, FAIL, "H5Aclose");
/* change attribute name */
- ret = H5Arename2(dataset, ".", ATTR1_NAME, ATTR_TMP_NAME, H5P_DEFAULT);
- CHECK(ret, FAIL, "H5Arename2");
+ ret = H5Arename(dataset, ATTR1_NAME, ATTR_TMP_NAME);
+ CHECK(ret, FAIL, "H5Arename");
/* Open attribute again */
attr = H5Aopen(dataset, ATTR_TMP_NAME, H5P_DEFAULT);
@@ -2382,8 +2382,8 @@ test_attr_dense_rename(hid_t fcpl, hid_t fapl)
sprintf(new_attrname, "new attr %02u", u);
/* Rename attribute */
- ret = H5Arename2(fid, DSET1_NAME, attrname, new_attrname, H5P_DEFAULT);
- CHECK(ret, FAIL, "H5Arename2");
+ ret = H5Arename_by_name(fid, DSET1_NAME, attrname, new_attrname, H5P_DEFAULT);
+ CHECK(ret, FAIL, "H5Arename_by_name");
/* Check # of attributes */
ret = H5Oget_info(dataset, ".", &oinfo, H5P_DEFAULT);
@@ -3323,12 +3323,8 @@ test_attr_deprec(hid_t fcpl, hid_t fapl)
CHECK(ret, FAIL, "H5Aclose");
- /* Rename attribute */
- ret = H5Arename1(dataset, "attr", "attr2");
- CHECK(ret, FAIL, "H5Arename1");
-
/* Delete attribute */
- ret = H5Adelete1(dataset, "attr2");
+ ret = H5Adelete1(dataset, "attr");
CHECK(ret, FAIL, "H5Adelete1");
@@ -7596,8 +7592,8 @@ test_attr_shared_rename(hid_t fcpl, hid_t fapl)
sprintf(attrname2, "new attr %02u", u);
/* Change second dataset's attribute's name */
- ret = H5Arename2(fid, DSET2_NAME, attrname, attrname2, H5P_DEFAULT);
- CHECK(ret, FAIL, "H5Arename2");
+ ret = H5Arename_by_name(fid, DSET2_NAME, attrname, attrname2, H5P_DEFAULT);
+ CHECK(ret, FAIL, "H5Arename_by_name");
/* Check refcount on attributes now */
@@ -7652,8 +7648,8 @@ test_attr_shared_rename(hid_t fcpl, hid_t fapl)
/* Change second dataset's attribute's name back to original */
- ret = H5Arename2(fid, DSET2_NAME, attrname2, attrname, H5P_DEFAULT);
- CHECK(ret, FAIL, "H5Arename2");
+ ret = H5Arename_by_name(fid, DSET2_NAME, attrname2, attrname, H5P_DEFAULT);
+ CHECK(ret, FAIL, "H5Arename_by_name");
/* Check refcount on attributes now */