summaryrefslogtreecommitdiffstats
path: root/Utilities/cmjsoncpp/src/lib_json/json_reader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/cmjsoncpp/src/lib_json/json_reader.cpp')
0 files changed, 0 insertions, 0 deletions
ib/h5diff.c +++ b/tools/lib/h5diff.c @@ -471,6 +471,7 @@ hsize_t diff (hid_t file1_id, if (print_objname(options,(hsize_t)1)) do_print_objname ("dataset", path1, path2); nfound=diff_dataset(file1_id,file2_id,path1,path2,options); + print_found(nfound); } /*------------------------------------------------------------------------- @@ -493,6 +494,7 @@ hsize_t diff (hid_t file1_id, if (print_objname(options,nfound)) do_print_objname ("dataset", path1, path2); nfound=diff_dataset(file1_id,file2_id,path1,path2,options); + print_found(nfound); } } /* in quiet mode, just count differences */ @@ -523,6 +525,10 @@ hsize_t diff (hid_t file1_id, if (print_objname(options,nfound)) do_print_objname ("datatype", path1, path2); + + /* always print the number of differences found in verbose mode */ + if (options->m_verbose) + print_found(nfound); /*------------------------------------------------------------------------- * compare attributes @@ -552,6 +558,10 @@ hsize_t diff (hid_t file1_id, if (print_objname(options,nfound)) do_print_objname ("group", path1, path2); + + /* always print the number of differences found in verbose mode */ + if (options->m_verbose) + print_found(nfound); if ((grp1_id = H5Gopen(file1_id, path1))<0) goto out; @@ -602,6 +612,10 @@ hsize_t diff (hid_t file1_id, if (print_objname (options, nfound)) do_print_objname ("link", path1, path2); + + /* always print the number of differences found in verbose mode */ + if (options->m_verbose) + print_found(nfound); HDfree (buf1); HDfree (buf2); diff --git a/tools/testfiles/h5diff_100.txt b/tools/testfiles/h5diff_100.txt index e116ac1..a2186a7 100644 --- a/tools/testfiles/h5diff_100.txt +++ b/tools/testfiles/h5diff_100.txt @@ -1034,5 +1034,6 @@ position big big difference [ 268436477 ] 31 0 31 [ 268436478 ] 31 0 31 [ 268436479 ] 31 0 31 -group : and 1024 differences found +group : and +0 differences found diff --git a/tools/testfiles/h5diff_17.txt b/tools/testfiles/h5diff_17.txt index 9d498a0..ac756c9 100644 --- a/tools/testfiles/h5diff_17.txt +++ b/tools/testfiles/h5diff_17.txt @@ -22,6 +22,7 @@ file1 file2 x /g2 group : and