[svn-r22176] Purpose:
Fix for HDFFV-7644 GMQS: h5diff - incorrect behaviors when comparing HDF5 files with different type of objects (dataset, group, type) as common objects
Description:
Fixed failure for comparing same named object with different object types in comparing groups. (common object comparison)
Prior to the fix, h5diff resulted in error. After the fix, h5diff detects such case as non-comparable and display messages accordingly.
Test cases were added and tagged with jira#.
Tested:
jam (linux32-LE), koala (linux64-LE), ostrich (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Windows (32-LE cmake), Cmake (jam)
2012-03-29 06:09:38 +08:00
|
|
|
Not comparable: </diffobjtypes/obj1> is of type H5G_DATASET and </diffobjtypes/obj1> is of type H5G_GROUP
|
|
|
|
Not comparable: </diffobjtypes/obj2> is of type H5G_GROUP and </diffobjtypes/obj2> is of type H5G_TYPE
|
|
|
|
Not comparable: </diffobjtypes/obj3> is of type H5G_TYPE and </diffobjtypes/obj3> is of type H5G_DATASET
|
2011-09-17 03:29:03 +08:00
|
|
|
Not comparable: </g1/dset1> is of class H5T_INTEGER and </g1/dset1> is of class H5T_STRING
|
|
|
|
attribute: <attr of </g1/dset1>> and <attr of </g1/dset1>>
|
|
|
|
3 differences found
|
|
|
|
dataset: </g1/dset2> and </g1/dset2>
|
|
|
|
3 differences found
|
2012-09-11 05:40:47 +08:00
|
|
|
dataset: </g2/dset1> and </g2/dset1>
|
|
|
|
3 differences found
|
2011-09-17 03:29:03 +08:00
|
|
|
Not comparable: <attr1> is of class H5T_INTEGER and <attr1> is of class H5T_STRING
|
2011-10-25 05:50:13 +08:00
|
|
|
Not comparable: <attr2> has rank 1, dimensions [3], max dimensions [3]
|
|
|
|
and <attr2> has rank 1, dimensions [4], max dimensions [4]
|
|
|
|
Not comparable: <attr3> has rank 1, dimensions [3], max dimensions [3]
|
|
|
|
and <attr3> has rank 2, dimensions [3x1], max dimensions [3x1]
|
|
|
|
attribute: <attr4 of </g2/dset1>> and <attr4 of </g2/dset1>>
|
2011-09-17 03:29:03 +08:00
|
|
|
3 differences found
|
|
|
|
dataset: </g2/dset2> and </g2/dset2>
|
|
|
|
3 differences found
|
|
|
|
EXIT CODE: 1
|