summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dumpgentest.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-06-05 14:37:21 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-06-05 14:37:21 (GMT)
commit671d37e6c5777a5e4c67013ffa390d26b6932845 (patch)
treeaa07ba695cf88cccf18ec2da52c19c4be5aaf439 /tools/h5dump/h5dumpgentest.c
parentb75540244fb313f179fe11c587e5e008677e6762 (diff)
downloadhdf5-671d37e6c5777a5e4c67013ffa390d26b6932845.zip
hdf5-671d37e6c5777a5e4c67013ffa390d26b6932845.tar.gz
hdf5-671d37e6c5777a5e4c67013ffa390d26b6932845.tar.bz2
[svn-r15143]
Fix for #1169 http://bugzilla.hdfgroup.uiuc.edu/show_bug.cgi?id=1169 don't print attributes to stdout when doing binary output added an attribute to the file run on the binary output test tested: windows, linux
Diffstat (limited to 'tools/h5dump/h5dumpgentest.c')
-rw-r--r--tools/h5dump/h5dumpgentest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index 63cb1e8..8f48e89 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -5554,7 +5554,7 @@ error:
static void
gent_binary(void)
{
- hid_t fid, sid, did;
+ hid_t fid, sid, did, aid;
hsize_t dims[1] = {6};
int ibuf[6] = {1,2,3,4,5,6};
float fbuf[6] = {1,2,3,4,5,6};
@@ -5587,6 +5587,9 @@ gent_binary(void)
*/
did = H5Dcreate2(fid, "double", H5T_NATIVE_DOUBLE, sid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
H5Dwrite(did, H5T_NATIVE_DOUBLE, H5S_ALL, H5S_ALL, H5P_DEFAULT, dbuf);
+ /* create an attribute */
+ aid = H5Acreate2(did, "attr", H5T_NATIVE_DOUBLE, sid, H5P_DEFAULT, H5P_DEFAULT);
+ H5Aclose(aid);
H5Dclose(did);