diff options
Diffstat (limited to 'test/tunicode.c')
-rw-r--r-- | test/tunicode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tunicode.c b/test/tunicode.c index a5f1309..767928e 100644 --- a/test/tunicode.c +++ b/test/tunicode.c @@ -398,10 +398,10 @@ void test_objnames(hid_t fid, const char* string) /* Set a comment on the group to test that we can access the group * Also test that UTF-8 comments can be read. */ - ret = H5Oset_comment(fid, string, string, H5P_DEFAULT); - CHECK(ret, FAIL, "H5Oset_comment"); - ret = H5Oget_comment(fid, string, read_buf, (size_t)MAX_STRING_LENGTH, H5P_DEFAULT); - CHECK(ret, FAIL, "H5Oget_comment"); + ret = H5Oset_comment_by_name(fid, string, string, H5P_DEFAULT); + CHECK(ret, FAIL, "H5Oset_comment_by_name"); + ret = H5Oget_comment_by_name(fid, string, read_buf, (size_t)MAX_STRING_LENGTH, H5P_DEFAULT); + CHECK(ret, FAIL, "H5Oget_comment_by_name"); ret = H5Gclose(grp_id); CHECK(ret, FAIL, "H5Gclose"); |