diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-02-04 20:36:24 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-02-04 20:36:24 (GMT) |
commit | 229e13fecec59da3680a17020c74fd44ca82ff54 (patch) | |
tree | 2a2262691bc8cb596a52faf3489625c15753caba /tools/h5dump/h5dumpgentest.c | |
parent | 641a70b7e0e9c7516c830f309d93c456a546e385 (diff) | |
download | hdf5-229e13fecec59da3680a17020c74fd44ca82ff54.zip hdf5-229e13fecec59da3680a17020c74fd44ca82ff54.tar.gz hdf5-229e13fecec59da3680a17020c74fd44ca82ff54.tar.bz2 |
[svn-r20045] Fix bz2127 by dynamically allocating storgae for comments.
Bring 20044 from trunk
Tested: local linux
Diffstat (limited to 'tools/h5dump/h5dumpgentest.c')
-rw-r--r-- | tools/h5dump/h5dumpgentest.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c index 9f8d277..efb563e 100644 --- a/tools/h5dump/h5dumpgentest.c +++ b/tools/h5dump/h5dumpgentest.c @@ -3390,6 +3390,11 @@ gent_group_comments(void) H5Oset_comment_by_name(group, "/g2/g2.1/g2.1.3", "Comment for group /g2/g2.1/g2.1.3", H5P_DEFAULT); H5Gclose(group); + /* /glongcomment */ + group = H5Gcreate2(fid, "/glongcomment", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); + H5Oset_comment_by_name(group, "/glongcomment", "Comment for group /glongcomment with a really, really, really long, long, long comment", H5P_DEFAULT); + H5Gclose(group); + H5Fclose(fid); } |