[svn-r20724] Purpose: Fix a bug in h5diff when enum values are compared that do

not represent a valid enum value.

Description:
The h5diff code compares enum values by converting them to strings and
then comparing them.  When the enum value is out of range and can't be
converted to an enum string representation, the comparison was skipped.

The code now flags differences when one of the two enum values is out
of range (two out of range values are compared in memory).  A test has
been added to the tools test script.

This fixes JIRA HDFFV-7527

Tested on: jam, koala, heiwa (h5committest)
This commit is contained in:
Dana Robinson
2011-05-04 15:07:38 -05:00
parent 2ee1841187
commit fbba9db955
6 changed files with 138 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
dataset: </dset1> and </dset2>
size: [6] [6]
position dset1 dset2 difference
------------------------------------------------------------
[ 1 ] YIN **INVALID VALUE**
[ 2 ] **INVALID VALUE** YIN
[ 4 ] **INVALID VALUE** **INVALID VALUE**
[ 5 ] YIN YANG
4 differences found
EXIT CODE: 1