summaryrefslogtreecommitdiffstats
path: root/test/dsets.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-07-20 21:01:32 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-07-20 21:01:32 (GMT)
commit2423411a647cff2bc2c37789fc9973ed4a683348 (patch)
tree562aba5c2f3d8aabf164d81122b8531947dd4b68 /test/dsets.c
parent00aa39c66f9e6a7cdf594533eadfaac74896898b (diff)
downloadhdf5-2423411a647cff2bc2c37789fc9973ed4a683348.zip
hdf5-2423411a647cff2bc2c37789fc9973ed4a683348.tar.gz
hdf5-2423411a647cff2bc2c37789fc9973ed4a683348.tar.bz2
[svn-r522] Changes since 19980720
---------------------- ./src/H5Gpublic.h ./src/H5Gprivate.h ./src/H5G.c ./test/dsets.c ./doc/html/Groups.html Added the H5Gset_comment() and H5Gget_comment() functions described in an earlier e-mail. ./src/H5.c Fixed a bug in the tracing code that caused certain data space enum types to not be printed. Nested case statements can get confusing to the eyes! ./tools/h5ls.c Prints the first 50 bytes or so of object comments.
Diffstat (limited to 'test/dsets.c')
-rw-r--r--test/dsets.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dsets.c b/test/dsets.c
index 4d0477f..6ad7ee0 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -114,6 +114,10 @@ test_create(hid_t file)
/* Close the dataset */
if (H5Dclose(dataset) < 0) goto error;
+ /* Add a comment to the dataset */
+ status = H5Gset_comment(file, DSET_DEFAULT_NAME, "This is a dataset");
+ if (status<0) goto error;
+
/*
* Try creating a dataset that already exists. This should fail since a
* dataset can only be created once. Temporarily turn off error
@@ -788,7 +792,9 @@ main(void)
/* Cause the library to emit initial messages */
grp = H5Gcreate (file, "emit diagnostics", 0);
+ H5Gset_comment(grp, ".", "Causes diagnostic messages to be emitted");
H5Gclose (grp);
+
status = test_create(file);