diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-08-30 13:55:10 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-08-30 13:55:10 (GMT) |
commit | c50c23d387121f2acaf364fa3c1f5d407c4ffb43 (patch) | |
tree | 70719be38921637a74c90894d837973017bc68f0 /test/stab.c | |
parent | 926a033b139974a8a9fd6ddec7150bcbdb556675 (diff) | |
download | hdf5-c50c23d387121f2acaf364fa3c1f5d407c4ffb43.zip hdf5-c50c23d387121f2acaf364fa3c1f5d407c4ffb43.tar.gz hdf5-c50c23d387121f2acaf364fa3c1f5d407c4ffb43.tar.bz2 |
[svn-r14129] Description:
Add H5O{set|get}_comment routines, which were overlooked before.
Move H5G{set|get}_comment routines to deprecated code section,
replacing internal calls with H5O{set|get}_comment.
Tested on:
FreeBSD/32 6.2 (duty)
FreeBSD/64 6.2 (liberty)
Linux/32 2.6 (kagiso)
Linux/64 2.6 (smirom)
Solaris/32 5.10 (linew)
AIX/32 5.3 (copper)
Mac OS X/32 10.4.10 (amazon)
Diffstat (limited to 'test/stab.c')
-rw-r--r-- | test/stab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/stab.c b/test/stab.c index 2aed346..e3cfa57 100644 --- a/test/stab.c +++ b/test/stab.c @@ -111,7 +111,7 @@ test_misc(hid_t fapl, hbool_t new_format) if((g1 = H5Gcreate2(fid, "test_1a", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR if((g2 = H5Gcreate2(g1, "sub_1", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR if((g3 = H5Gcreate2(fid, "test_1b", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR - if(H5Gset_comment(g3, ".", "hello world") < 0) TEST_ERROR + if(H5Oset_comment(g3, ".", "hello world", H5P_DEFAULT) < 0) TEST_ERROR if(H5Gclose(g1) < 0) TEST_ERROR if(H5Gclose(g2) < 0) TEST_ERROR if(H5Gclose(g3) < 0) TEST_ERROR @@ -120,7 +120,7 @@ test_misc(hid_t fapl, hbool_t new_format) if((g1 = H5Gopen2(fid, "/test_1a", H5P_DEFAULT)) < 0) TEST_ERROR if((g2 = H5Gopen2(fid, "/test_1a/sub_1", H5P_DEFAULT)) < 0) TEST_ERROR if((g3 = H5Gopen2(fid, "/test_1b", H5P_DEFAULT)) < 0) TEST_ERROR - if(H5Gget_comment(g3, "././.", sizeof comment, comment) < 0) TEST_ERROR + if(H5Oget_comment(g3, "././.", comment, sizeof comment, H5P_DEFAULT) < 0) TEST_ERROR if(HDstrcmp(comment, "hello world")) { H5_FAILED(); puts(" Read the wrong comment string from the group."); |