[svn-r18055] 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 03:36:37 -05:00
parent 840e04ab5f
commit f40a245ce2
17 changed files with 146 additions and 97 deletions

View File

@@ -15,6 +15,10 @@
#
# Tests for the h5dump tool
TESTNAME=h5dumpxml
EXIT_SUCCESS=0
EXIT_FAILURE=1
H5_LONE_COLON="@H5_LONE_COLON@"
DUMPER=h5dump # The tool name
@@ -185,10 +189,10 @@ TOOLTEST torderattr3.h5.xml --xml -H --sort_by=creation_order --sort_order=ascen
TOOLTEST torderattr4.h5.xml --xml -H --sort_by=creation_order --sort_order=descending torderattr.h5
if test $nerrors -eq 0 ; then
echo "All $DUMPER tests passed."
echo "All $TESTNAME tests passed."
exit $EXIT_SUCCESS
else
echo "$TESTNAME tests failed with $nerrors errors."
exit $EXIT_FAILURE
fi
exit $nerrors