diff options
Diffstat (limited to 'test/dsets.c')
-rw-r--r-- | test/dsets.c | 6 |
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); |