summaryrefslogtreecommitdiffstats
path: root/test/tattr.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-12-12 01:49:59 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-12-12 01:49:59 (GMT)
commit2f665b89ce8f1b28a4a8fbe40cf3f2f507e6b860 (patch)
tree1c684269c08fefef3a4446fede48cf39566e0cd9 /test/tattr.c
parentf98b337a92b4367695ee0da8f0082a79633139ac (diff)
downloadhdf5-2f665b89ce8f1b28a4a8fbe40cf3f2f507e6b860.zip
hdf5-2f665b89ce8f1b28a4a8fbe40cf3f2f507e6b860.tar.gz
hdf5-2f665b89ce8f1b28a4a8fbe40cf3f2f507e6b860.tar.bz2
[svn-r13047] Description:
Add "attribute exists" internal routine to make verifying that an attribute with the same name doesn't already exist easier. Tweak "trace" script to produce more whitespace in H5TRACE macros, in order to make them easier to read. Minor other whitespace cleanups Tested on: Linux/32 2.6 (chicago) Linux/64 2.6 (chicago2)
Diffstat (limited to 'test/tattr.c')
-rw-r--r--test/tattr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/tattr.c b/test/tattr.c
index 1d1a8da..12eebec 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -1770,6 +1770,10 @@ HDfprintf(stderr, "max_compact = %u, min_dense = %u\n", max_compact, min_dense);
ret = H5Aclose(attr);
CHECK(ret, FAIL, "H5Aclose");
+ /* Attempt to add attribute again, which should fail */
+ attr = H5Acreate(dataset, attrname, H5T_NATIVE_UINT, sid, H5P_DEFAULT);
+ VERIFY(attr, FAIL, "H5Acreate");
+
/* Close dataspace */
ret = H5Sclose(sid);
CHECK(ret, FAIL, "H5Sclose");
@@ -1955,7 +1959,7 @@ HDfprintf(stderr, "max_compact = %u, min_dense = %u\n", max_compact, min_dense);
is_dense = H5O_is_attr_dense_test(dataset);
VERIFY(is_dense, FALSE, "H5O_is_attr_dense_test");
- /* Add attributes, until just before coverting to dense storage */
+ /* Add attributes, until well into dense storage */
for(u = 0; u < (max_compact * 2); u++) {
/* Create attribute */
sprintf(attrname, "attr %02u", u);