diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2009-01-26 19:29:22 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2009-01-26 19:29:22 (GMT) |
commit | 120350c39588d57d6b89bd99569a7fa34b4de59f (patch) | |
tree | dda9cdb9248d698832c0bd25425029634cfd2d7e /tools/lib/h5diff.c | |
parent | 0682bfceb764bd4f4b4fb61695ca8d99440f39b1 (diff) | |
download | hdf5-120350c39588d57d6b89bd99569a7fa34b4de59f.zip hdf5-120350c39588d57d6b89bd99569a7fa34b4de59f.tar.gz hdf5-120350c39588d57d6b89bd99569a7fa34b4de59f.tar.bz2 |
[svn-r16348] #1368 (E1) h5diff: implement "not comparable" messages. Implemented RFC. The new option is <-c, --compare List objects that are not comparable>
added some test cases
tested: windows, linux
Diffstat (limited to 'tools/lib/h5diff.c')
-rw-r--r-- | tools/lib/h5diff.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/lib/h5diff.c b/tools/lib/h5diff.c index a7d9a05..38c5f54 100644 --- a/tools/lib/h5diff.c +++ b/tools/lib/h5diff.c @@ -846,10 +846,12 @@ hsize_t diff_compare(hid_t file1_id, /* objects are not the same type */ if (info1->paths[i].type != info2->paths[j].type) { - if (options->m_verbose) - parallel_print("Comparison not possible: <%s> is of type %s and <%s> is of type %s\n", + if (options->m_verbose||options->m_list_not_cmp) + { + parallel_print("<%s> is of type %s and <%s> is of type %s\n", obj1_name, get_type(info1->paths[i].type), obj2_name, get_type(info2->paths[j].type)); + } options->not_cmp=1; return 0; } |