[svn-r8912] Purpose:

bug fixes

Description:

the return error code for a  function was not initialized.
in HP-UX  it happened that this variable was initialized to -1
causing the function to return with an error condtion
solution : initialized the variable to 0

the name of the dataset was printed after the differences in verbose mode
and report when differences were found
solution : check first if differences were found and then
print the name of dataset and differences
in verbose mode always print the name first

Solution:

Platforms tested:
linux
aix
solaris

Misc. update:
This commit is contained in:
Pedro Vicente Nunes
2004-07-21 12:50:49 -05:00
parent 50a853d807
commit 140dfae48a
18 changed files with 291 additions and 209 deletions

View File

@@ -1,6 +1,7 @@
#############################
Expected output for 'h5diff file1.h5 file2.h5 -r -d 5 g1/dset3 g1/dset4'
#############################
Dataset: </g1/dset3> and </g1/dset4>
position dset3 dset4 difference
------------------------------------------------------------
[ 0 0 ] 100.000000 110.000000 10.000000
@@ -9,5 +10,4 @@ position dset3 dset4 difference
[ 1 1 ] 100.000000 80.000000 20.000000
[ 2 0 ] 100.000000 140.000000 40.000000
[ 2 1 ] 100.000000 200.000000 100.000000
Dataset: </g1/dset3> and </g1/dset4>
6 differences found