diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-03-11 22:21:37 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-03-11 22:21:37 (GMT) |
commit | 53c6f67778c3dc5b0e39276227c77eba93ab92f0 (patch) | |
tree | e5977b7502c1fa8d91a5ac2cccd98f6b9b822886 /test/tattr.c | |
parent | fa81a84cec5fe9b8c850821934afbed9ceee8e77 (diff) | |
download | hdf5-53c6f67778c3dc5b0e39276227c77eba93ab92f0.zip hdf5-53c6f67778c3dc5b0e39276227c77eba93ab92f0.tar.gz hdf5-53c6f67778c3dc5b0e39276227c77eba93ab92f0.tar.bz2 |
[svn-r14720] Description:
Minor bug fix to H5Aget_num_attrs() to return error when an invalid
location ID is passed in.
Tested on:
Mac OS X/32 (amazon)
Too minor to require h5committest
Diffstat (limited to 'test/tattr.c')
-rw-r--r-- | test/tattr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tattr.c b/test/tattr.c index d448397..12350c3 100644 --- a/test/tattr.c +++ b/test/tattr.c @@ -3303,6 +3303,10 @@ test_attr_deprec(hid_t fcpl, hid_t fapl) CHECK(dataset, FAIL, "H5Dopen2"); + /* Get number of attributes with bad ID */ + ret = H5Aget_num_attrs(-1); + VERIFY(ret, FAIL, "H5Aget_num_attrs"); + /* Get number of attributes */ ret = H5Aget_num_attrs(dataset); VERIFY(ret, 1, "H5Aget_num_attrs"); |