[llvm-commits] [test-suite] r166906 - /test-suite/trunk/RunSafely.sh
Daniel Dunbar
daniel at zuster.org
Sun Oct 28 17:17:21 PDT 2012
Author: ddunbar
Date: Sun Oct 28 19:17:21 2012
New Revision: 166906
URL: http://llvm.org/viewvc/llvm-project?rev=166906&view=rev
Log:
test-suite: Simplify some unnecessary logic in RunSafely.
- We don't need to special case based on the system now that we always use timeit.
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=166906&r1=166905&r2=166906&view=diff
==============================================================================
--- test-suite/trunk/RunSafely.sh (original)
+++ test-suite/trunk/RunSafely.sh Sun Oct 28 19:17:21 2012
@@ -94,34 +94,28 @@
OUTFILE=$3
PROGRAM=$4
shift 4
-SYSTEM=`uname -s`
PROG=${PROGRAM}
if [ `basename ${PROGRAM}` = "lli" ]; then
PROG=`basename ${PROGRAM}`
fi
+# Disable core file emission.
LIMITARGS=""
-case $SYSTEM in
- CYGWIN*)
- ;;
- *)
- # Disable core file emission.
- LIMITARGS="$LIMITARGS --limit-core 0"
-
- # Set the CPU limit. We watchdog the process, so this is mostly just for
- # paranoia.
- LIMITARGS="$LIMITARGS --limit-cpu $TIMELIMIT"
-
- # To prevent infinite loops which fill up the disk, specify a limit on size
- # of files being output by the tests.
- #
- # We set the limit at 100MB.
- LIMITARGS="$LIMITARGS --limit-file-size 104857600"
-
- # Set the virtual memory limit at 800MB.
- LIMITARGS="$LIMITARGS --limit-rss-size 838860800"
-esac
+LIMITARGS="$LIMITARGS --limit-core 0"
+
+# Set the CPU limit. We watchdog the process, so this is mostly just for
+# paranoia.
+LIMITARGS="$LIMITARGS --limit-cpu $TIMELIMIT"
+
+# To prevent infinite loops which fill up the disk, specify a limit on size
+# of files being output by the tests.
+#
+# We set the limit at 100MB.
+LIMITARGS="$LIMITARGS --limit-file-size 104857600"
+
+# Set the virtual memory limit at 800MB.
+LIMITARGS="$LIMITARGS --limit-rss-size 838860800"
# Run the command, timing its execution and logging the status summary to
# $OUTFILE.time.
More information about the llvm-commits
mailing list