summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dumpgentest.c
diff options
context:
space:
mode:
authorJonathan Kim <jkm@hdfgroup.org>2012-03-21 18:56:36 (GMT)
committerJonathan Kim <jkm@hdfgroup.org>2012-03-21 18:56:36 (GMT)
commit26cab92853adc480d0d72bd845fafa229a97becc (patch)
treeb2b274424479b1d1e158c594dac9dcd17ac7b556 /tools/h5dump/h5dumpgentest.c
parent9f18db936fcb588325bfb63a60a6804972d91d70 (diff)
downloadhdf5-26cab92853adc480d0d72bd845fafa229a97becc.zip
hdf5-26cab92853adc480d0d72bd845fafa229a97becc.tar.gz
hdf5-26cab92853adc480d0d72bd845fafa229a97becc.tar.bz2
[svn-r22108] Purpose:
HDFFV-7523 JPSS: h5dump fails to open an attribute when using the -a option to specify an attribute with a slash in the name Description: Update command line help page and test generating file. Previous commits: r22052, r22063 Tested: jam (linux32-LE), koala (linux64-LE), cmake (jam)
Diffstat (limited to 'tools/h5dump/h5dumpgentest.c')
-rw-r--r--tools/h5dump/h5dumpgentest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index 5b97434..b28f3de 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -426,7 +426,7 @@ gent_attribute(void)
/* attribute 1 */
dims[0] = 24;
space = H5Screate_simple(1, dims, NULL);
- attr = H5Acreate2(root, "attr1", H5T_STD_I8BE, space, H5P_DEFAULT, H5P_DEFAULT);
+ attr = H5Acreate2(root, "/attr1", H5T_STD_I8BE, space, H5P_DEFAULT, H5P_DEFAULT);
sprintf(buf, "attribute of root group");
H5Awrite(attr, H5T_NATIVE_SCHAR, buf);
H5Sclose(space);