summaryrefslogtreecommitdiffstats
path: root/tools/h5dump
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-11-08 21:24:41 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-11-08 21:24:41 (GMT)
commit89cca34b9763e12a73a86164306d5ffbede28f64 (patch)
tree1822cc905222f9e4dd557ae4ac0de1608dcd33f5 /tools/h5dump
parenta9350e86f0a04cc1f6aba59849063d4acfa1be7b (diff)
downloadhdf5-89cca34b9763e12a73a86164306d5ffbede28f64.zip
hdf5-89cca34b9763e12a73a86164306d5ffbede28f64.tar.gz
hdf5-89cca34b9763e12a73a86164306d5ffbede28f64.tar.bz2
[svn-r12883]
h5dump bug 701. Symptom: The creation of a hardlink pointing to the root group "/" causes h5dump to display it as a link pointing to itself. Cure: the root group was not being inserted in the table that keeps track of object names and links. Added a test for this in the test generation program, the creation of a hardlink to the root
Diffstat (limited to 'tools/h5dump')
-rw-r--r--tools/h5dump/h5dumpgentest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c
index e6454a8..463f718 100644
--- a/tools/h5dump/h5dumpgentest.c
+++ b/tools/h5dump/h5dumpgentest.c
@@ -474,6 +474,9 @@ static void gent_hardlink(void)
group = H5Gopen(fid, "/g1");
H5Glink (group, H5L_TYPE_HARD, "/g2", "g1.1");
H5Gclose(group);
+
+ /* create a link to the root group */
+ H5Glink (fid, H5L_TYPE_HARD, "/", "g3");
H5Fclose(fid);
}