summaryrefslogtreecommitdiffstats
path: root/tools/h5ls/testh5ls.sh.in
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2009-12-26 07:43:50 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2009-12-26 07:43:50 (GMT)
commit8de1f3aab3c40a81402759d8416d5e71b66b4919 (patch)
tree0e222109f002762b653900ba9239872e74aea0cf /tools/h5ls/testh5ls.sh.in
parentb6a36494bc0593e25ce78a807c1ad2121a139a7f (diff)
downloadhdf5-8de1f3aab3c40a81402759d8416d5e71b66b4919.zip
hdf5-8de1f3aab3c40a81402759d8416d5e71b66b4919.tar.gz
hdf5-8de1f3aab3c40a81402759d8416d5e71b66b4919.tar.bz2
[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.
Diffstat (limited to 'tools/h5ls/testh5ls.sh.in')
-rw-r--r--tools/h5ls/testh5ls.sh.in12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/h5ls/testh5ls.sh.in b/tools/h5ls/testh5ls.sh.in
index ddb09b5..076c529 100644
--- a/tools/h5ls/testh5ls.sh.in
+++ b/tools/h5ls/testh5ls.sh.in
@@ -15,6 +15,10 @@
#
# Tests for the h5ls tool
+TESTNAME=h5ls
+EXIT_SUCCESS=0
+EXIT_FAILURE=1
+
H5LS=h5ls # The tool name
H5LS_BIN=`pwd`/$H5LS # The path of the tool binary
@@ -192,7 +196,9 @@ fi
if test $nerrors -eq 0 ; then
- echo "All h5ls tests passed."
+ echo "All $TESTNAME tests passed."
+ exit $EXIT_SUCCESS
+else
+ echo "$TESTNAME tests failed with $nerrors errors."
+ exit $EXIT_FAILURE
fi
-
-exit $nerrors