diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2011-05-04 20:07:38 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2011-05-04 20:07:38 (GMT) |
commit | fbba9db9559924c5fab5ad969884e86ca0cc1418 (patch) | |
tree | d48ee2a7907a23ec50415eb568cb863bdf3e0b37 /tools/h5diff/testfiles | |
parent | 2ee184118709356cfada5dd510d26148183b9259 (diff) | |
download | hdf5-fbba9db9559924c5fab5ad969884e86ca0cc1418.zip hdf5-fbba9db9559924c5fab5ad969884e86ca0cc1418.tar.gz hdf5-fbba9db9559924c5fab5ad969884e86ca0cc1418.tar.bz2 |
[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)
Diffstat (limited to 'tools/h5diff/testfiles')
-rw-r--r-- | tools/h5diff/testfiles/h5diff_30.txt | 10 | ||||
-rwxr-xr-x | tools/h5diff/testfiles/h5diff_enum_invalid_values.h5 | bin | 0 -> 2192 bytes |
2 files changed, 10 insertions, 0 deletions
diff --git a/tools/h5diff/testfiles/h5diff_30.txt b/tools/h5diff/testfiles/h5diff_30.txt new file mode 100644 index 0000000..cd5b3f9 --- /dev/null +++ b/tools/h5diff/testfiles/h5diff_30.txt @@ -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 diff --git a/tools/h5diff/testfiles/h5diff_enum_invalid_values.h5 b/tools/h5diff/testfiles/h5diff_enum_invalid_values.h5 Binary files differnew file mode 100755 index 0000000..9dc55f7 --- /dev/null +++ b/tools/h5diff/testfiles/h5diff_enum_invalid_values.h5 |