summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff.c
diff options
context:
space:
mode:
authorJonathan Kim <jkm@hdfgroup.org>2010-01-21 20:01:42 (GMT)
committerJonathan Kim <jkm@hdfgroup.org>2010-01-21 20:01:42 (GMT)
commit3c5dc1a808c1513632786cbf4a0a6d4b257c1953 (patch)
tree48df89d21fef89e596a9a49a6d2114da44834451 /tools/lib/h5diff.c
parente3ccf118bb2f5ef683e248ba7bc7335748bc30cc (diff)
downloadhdf5-3c5dc1a808c1513632786cbf4a0a6d4b257c1953.zip
hdf5-3c5dc1a808c1513632786cbf4a0a6d4b257c1953.tar.gz
hdf5-3c5dc1a808c1513632786cbf4a0a6d4b257c1953.tar.bz2
[svn-r18134] Purpose:
Additional fix relted to the fix of bug1672. Description: The fix of bug1672 caused some changes of output which required modifying some test cases. After some discussion, restoring the changes of the test cases was decided. After many experiments for the solution, this fix was made so the code which improved performance can stay. Tested on Jam.
Diffstat (limited to 'tools/lib/h5diff.c')
-rw-r--r--tools/lib/h5diff.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c
index 18dd1ed..ad42a94 100644
--- a/tools/lib/h5diff.c
+++ b/tools/lib/h5diff.c
@@ -931,11 +931,13 @@ hsize_t diff(hid_t file1_id,
/* the rest (-c, none, ...) */
else
{
- do_print_objname("dataset", path1, path2);
nfound = diff_dataset(file1_id, file2_id, path1, path2, options);
- /* not comparable, no display the different number */
- if (!options->not_cmp)
+ /* print info if compatible and difference found */
+ if (!options->not_cmp && nfound)
+ {
+ do_print_objname("dataset", path1, path2);
print_found(nfound);
+ }
}
break;