summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-01-03 04:42:13 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-01-03 04:42:13 (GMT)
commit9aa47d6ad51e5b1651eccb480603094a2e24d115 (patch)
treebb44fa6c48739aa7e5f69c4e8311737fe1301fda /test
parentc1d6230290469b4b4408fec5857a835893fe7d67 (diff)
downloadhdf5-9aa47d6ad51e5b1651eccb480603094a2e24d115.zip
hdf5-9aa47d6ad51e5b1651eccb480603094a2e24d115.tar.gz
hdf5-9aa47d6ad51e5b1651eccb480603094a2e24d115.tar.bz2
[svn-r13100] Description:
Fix bug which could possibly corrupt file data if an attribute was renamed to a longer name. Tested on: FreeBSD/32 6.1 (duty)
Diffstat (limited to 'test')
-rw-r--r--test/tattr.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/tattr.c b/test/tattr.c
index 4bada59..4567ef8 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -270,12 +270,6 @@ test_attr_basic_write(hid_t fapl)
ret=H5Aclose(attr2);
CHECK(ret, FAIL, "H5Aclose");
-#ifndef OLD_WAY
- /* change first attribute back to the original name */
- ret=H5Arename(dataset, ATTR_TMP_NAME, ATTR1_NAME);
- CHECK(ret, FAIL, "H5Arename");
-#endif /* OLD_WAY */
-
ret = H5Sclose(sid1);
CHECK(ret, FAIL, "H5Sclose");
ret = H5Sclose(sid2);
@@ -363,11 +357,7 @@ test_attr_basic_read(hid_t fapl)
VERIFY(ret, 2, "H5Aget_num_attrs");
/* Open first attribute for the dataset */
-#ifndef OLD_WAY
- attr=H5Aopen_name(dataset, ATTR1_NAME);
-#else /* OLD_WAY */
attr=H5Aopen_name(dataset, ATTR_TMP_NAME);
-#endif /* OLD_WAY */
CHECK(attr, FAIL, "H5Aopen_name");
/* Read attribute information */