Fixed CHICAGO: Bug 2121 - h5diff - incorrect and lack of output for the
different set of attributes (different number and names)
Description:
Previously h5diff compared attributes correctly only when two objects have
the same number of attributes and attribute names are identical.
This fix covers all other cases.
Also didn't display useful information about attribute difference.
This fixes both issues.
Tested:
jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE)
18 lines
652 B
Plaintext
18 lines
652 B
Plaintext
|
|
dataset: </dset> and </dset>
|
|
obj1 obj2
|
|
--------------------------------------
|
|
x float2
|
|
x float3
|
|
x x integer1
|
|
Attributes status: 1 common, 1 only in obj1, 1 only in obj2
|
|
attribute: <integer1 of </dset>> and <integer1 of </dset>>
|
|
size: [2] [2]
|
|
position integer1 of </dset> integer1 of </dset> difference
|
|
------------------------------------------------------------
|
|
[ 0 ] 1 2 1
|
|
[ 1 ] 2 3 1
|
|
2 differences found
|
|
2 differences found
|
|
EXIT CODE: 1
|