summaryrefslogtreecommitdiffstats
path: root/test/trefer.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/trefer.c')
-rw-r--r--test/trefer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/trefer.c b/test/trefer.c
index 14fc184..6ea69fd 100644
--- a/test/trefer.c
+++ b/test/trefer.c
@@ -110,8 +110,8 @@ test_reference_obj(void)
CHECK(group, FAIL, "H5Gcreate2");
/* Set group's comment */
- ret=H5Gset_comment(group,".",write_comment);
- CHECK(ret, FAIL, "H5Gset_comment");
+ ret=H5Oset_comment(group, ".", write_comment, H5P_DEFAULT);
+ CHECK(ret, FAIL, "H5Oset_comment");
/* Create a dataset (inside Group1) */
dataset=H5Dcreate(group,"Dataset1",H5T_NATIVE_UINT,sid1,H5P_DEFAULT);
@@ -245,8 +245,8 @@ test_reference_obj(void)
CHECK(group, FAIL, "H5Rdereference");
/* Get group's comment */
- ret = H5Gget_comment(group, ".", (size_t)10, read_comment);
- CHECK(ret, FAIL, "H5Gget_comment");
+ ret = H5Oget_comment(group, ".", read_comment, (size_t)10, H5P_DEFAULT);
+ CHECK(ret, FAIL, "H5Oget_comment");
/* Check for correct comment value */
if(HDstrcmp(write_comment, read_comment) != 0)