summaryrefslogtreecommitdiffstats
path: root/test/tattr.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2006-12-18 21:25:05 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2006-12-18 21:25:05 (GMT)
commit5865018c85449e4b03bb3f5d5e7d7948e110fe17 (patch)
tree6dd73ee04e34cbab435e1027e1a31cfc029f3659 /test/tattr.c
parent9769d008b0d610f3dd0bff5f3ef083d01c506c35 (diff)
downloadhdf5-5865018c85449e4b03bb3f5d5e7d7948e110fe17.zip
hdf5-5865018c85449e4b03bb3f5d5e7d7948e110fe17.tar.gz
hdf5-5865018c85449e4b03bb3f5d5e7d7948e110fe17.tar.bz2
[svn-r13073] Description:
Verify H5Aget_num_attrs() works correctly for new object header format. 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, 6 insertions, 0 deletions
diff --git a/test/tattr.c b/test/tattr.c
index 964773e..3e7e73d 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -1927,6 +1927,7 @@ test_attr_dense_delete(hid_t fcpl, hid_t fapl)
unsigned min_dense; /* Minimum # of attributes to store "densely" */
htri_t is_dense; /* Are attributes stored densely? */
unsigned u; /* Local index variable */
+ int attr_count; /* # of attributes */
herr_t ret; /* Generic return value */
/* Output message about test being performed */
@@ -1973,6 +1974,11 @@ HDfprintf(stderr, "max_compact = %u, min_dense = %u\n", max_compact, min_dense);
/* Close attribute */
ret = H5Aclose(attr);
CHECK(ret, FAIL, "H5Aclose");
+
+ /* Check # of attributes */
+ attr_count = H5Aget_num_attrs(dataset);
+ CHECK(attr_count, FAIL, "H5Aget_num_attrs");
+ VERIFY(attr_count, (u + 1), "H5Aget_num_attrs");
} /* end for */
/* Check on dataset's attribute storage status */