diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2001-01-12 22:46:48 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2001-01-12 22:46:48 (GMT) |
commit | 29fbb330b0735b36fcb02e44c51df024690f936c (patch) | |
tree | 6a4a6cf9cae8dcc2d88c5093afc32a2e2dd8976f | |
parent | 4d6ed298f2d0ade3d5c6c49b9ac5d503e8749f04 (diff) | |
download | hdf5-29fbb330b0735b36fcb02e44c51df024690f936c.zip hdf5-29fbb330b0735b36fcb02e44c51df024690f936c.tar.gz hdf5-29fbb330b0735b36fcb02e44c51df024690f936c.tar.bz2 |
[svn-r3287] Purpose:
Improvement
Description:
The mkdir testfiles and the testing of h5dump have their stderr
redirected to /dev/null. Thus no way to see error messages when happen.
Removed the redirection
Platforms tested:
Eirene (linux).
-rwxr-xr-x | tools/testh5dump.sh | 8 | ||||
-rwxr-xr-x | tools/testh5ls.sh | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/tools/testh5dump.sh b/tools/testh5dump.sh index f38209e..03acf2a 100755 --- a/tools/testh5dump.sh +++ b/tools/testh5dump.sh @@ -13,7 +13,7 @@ verbose=yes if test "X$srcdir" = X; then srcdir=. fi -mkdir testfiles >/dev/null 2>&1 +test -d testfiles || mkdir testfiles # Print a line-line message left justified in a field of 70 characters # beginning with the word "Testing". @@ -38,14 +38,16 @@ TOOLTEST() full=`pwd`/$h5tool # Run test. + # Stderr is included in stdout so that the diff can detect + # any unexpected output from that stream too. TESTING $h5tool $@ ( echo "#############################" echo "Expected output for '$h5tool $@'" echo "#############################" cd $srcdir/testfiles - $RUNSERIAL $h5tool_bin "$@" 2>/dev/null - ) >$actual + $RUNSERIAL $h5tool_bin "$@" + ) >$actual 2>& 1 if $CMP $expect $actual; then echo " PASSED" diff --git a/tools/testh5ls.sh b/tools/testh5ls.sh index 7681b47..9f659fc 100755 --- a/tools/testh5ls.sh +++ b/tools/testh5ls.sh @@ -14,7 +14,7 @@ verbose=yes if test "X$srcdir" = X; then srcdir=. fi -mkdir testfiles >/dev/null 2>&1 +test -d testfiles || mkdir testfiles # Print a line-line message left justified in a field of 70 characters # beginning with the word "Testing". @@ -39,6 +39,8 @@ TOOLTEST() shift # Run test. + # Stderr is included in stdout so that the diff can detect + # any unexpected output from that stream too. TESTING $h5tool $@ ( echo "#############################" |