[svn-r18053] Bug fix: 1192

Description:
Fixed exit code (sometimes return code in Main) to follow the HDF5 standards.

Tested:
H5committested plus serial test in Jam.
This commit is contained in:
Albert Cheng
2009-12-26 02:43:50 -05:00
parent b6a36494bc
commit 8de1f3aab3
18 changed files with 155 additions and 101 deletions

View File

@@ -19,6 +19,10 @@ if test -z "$srcdir"; then
srcdir=.
fi
TESTNAME=ph5diff
EXIT_SUCCESS=0
EXIT_FAILURE=1
TOOL=${srcdir}/testh5diff.sh
nerrors=0
@@ -53,12 +57,10 @@ TOOLTEST() {
# testphdf5 test using the MPI-POSIX VFL driver
TOOLTEST -p
# Emit message about testing status
# no need to print any message since this is just a shell to invoke
# testh5diff.sh which has already printed the result. Just exit.
if test $nerrors -eq 0 ; then
echo "All $TEST_APP tests passed."
exit $EXIT_SUCCESS
else
echo "ERROR! One or more $TOOL tests failed."
exit $EXIT_FAILURE
fi
# Propagate a useful exit code
exit $nerrors