summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-10-17 22:26:14 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-10-17 22:26:14 (GMT)
commit6c262bfc9359e274c6a2b8234c34e4415d8146ed (patch)
tree1c56e362d3125b421110a60bec835810f4b71692 /tools/lib
parent1b86e5a5297dc6670ff284f98202330e74201943 (diff)
downloadhdf5-6c262bfc9359e274c6a2b8234c34e4415d8146ed.zip
hdf5-6c262bfc9359e274c6a2b8234c34e4415d8146ed.tar.gz
hdf5-6c262bfc9359e274c6a2b8234c34e4415d8146ed.tar.bz2
[svn-r15899] Extend the -c flag for ignore graph differences to ignore different group names
This is used in the h5copy test that compares renaming of groups Tested: linux
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5diff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c
index 5669945..2b10c57 100644
--- a/tools/lib/h5diff.c
+++ b/tools/lib/h5diff.c
@@ -974,6 +974,10 @@ hsize_t diff(hid_t file1_id,
/* if "path1" != "path2" then the groups are "different" */
nfound = (ret != 0) ? 1 : 0;
+ /* if the ignore graph is present, consider a no difference */
+ if ( options->m_no_contents == 1 )
+ nfound = 0;
+
if(print_objname(options, nfound))
do_print_objname("group", path1, path2);