diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2009-01-26 20:39:32 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2009-01-26 20:39:32 (GMT) |
commit | d2dd85b598976e6a3227447f464dbd9dcbb01b96 (patch) | |
tree | cf88399f8142b05d53af1ae9730e551671b2113f /tools/lib/h5diff.c | |
parent | 1197e992e94d823a1dea02ad91f42299df305dad (diff) | |
download | hdf5-d2dd85b598976e6a3227447f464dbd9dcbb01b96.zip hdf5-d2dd85b598976e6a3227447f464dbd9dcbb01b96.tar.gz hdf5-d2dd85b598976e6a3227447f464dbd9dcbb01b96.tar.bz2 |
[svn-r16351] merge 16348
#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 b1f9c40..57b8104 100644 --- a/tools/lib/h5diff.c +++ b/tools/lib/h5diff.c @@ -841,10 +841,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; } |