[llvm-commits] [test-suite] r166955 - /test-suite/trunk/RunSafely.sh
Daniel Dunbar
daniel at zuster.org
Mon Oct 29 11:25:07 PDT 2012
Author: ddunbar
Date: Mon Oct 29 13:25:07 2012
New Revision: 166955
URL: http://llvm.org/viewvc/llvm-project?rev=166955&view=rev
Log:
RunSafely: If --show-errors is given, treat non-zero exit as failure.
Modified:
test-suite/trunk/RunSafely.sh
Modified: test-suite/trunk/RunSafely.sh
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/RunSafely.sh?rev=166955&r1=166954&r2=166955&view=diff
==============================================================================
--- test-suite/trunk/RunSafely.sh (original)
+++ test-suite/trunk/RunSafely.sh Mon Oct 29 13:25:07 2012
@@ -34,7 +34,7 @@
# <args...> are the arguments to pass to the program.
#
# If --show-errors is given, then the output file will be printed if the command
-# fails.
+# fails (returns a non-zero exit code).
if [ $# -lt 4 ]; then
echo "./RunSafely.sh [-t <PATH>] <timeout> <infile> <outfile>" \
@@ -163,6 +163,8 @@
echo "TEST $PROGRAM FAILED: exit status 128!"
elif test "$exitval" -gt 128 ; then
echo "TEST $PROGRAM FAILED: process terminated by signal (exit status $exitval)!"
+elif [ "$SHOW_ERRORS" -eq 1 -a "$exitval" -ne 0 ] ; then
+ echo "TEST $PROGRAM FAILED: EXIT != 0"
else
fail=no
fi
More information about the llvm-commits
mailing list