summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2010-06-07 23:44:27 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2010-06-07 23:44:27 (GMT)
commit21d186a8e7f89a065f47d6f515da4ef1495e29b7 (patch)
tree3aad16ca92ab8f4feb5a54c3095baeb378a357fa
parent7d1adc1f35507e44716f3c2351c202e61d684123 (diff)
downloadhdf5-21d186a8e7f89a065f47d6f515da4ef1495e29b7.zip
hdf5-21d186a8e7f89a065f47d6f515da4ef1495e29b7.tar.gz
hdf5-21d186a8e7f89a065f47d6f515da4ef1495e29b7.tar.bz2
[svn-r18984] Description:
Fixed exit code (sometimes return code in Main) to follow the HDF5 standards. Tested: Tested in Dove-linux only since change is trivial and has passed in v1.8.
-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 40dcaa4..970646d 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
@@ -207,7 +211,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