[llvm-commits] [test-suite] r152994 - /test-suite/trunk/RunSafely.sh

Daniel Dunbar daniel at zuster.org
Sat Mar 17 10:59:51 PDT 2012


Author: ddunbar
Date: Sat Mar 17 12:59:50 2012
New Revision: 152994

URL: http://llvm.org/viewvc/llvm-project?rev=152994&view=rev
Log:
[test-suite] Rename $ULIMIT to $TIMELIMIT for clarity.

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=152994&r1=152993&r2=152994&view=diff
==============================================================================
--- test-suite/trunk/RunSafely.sh (original)
+++ test-suite/trunk/RunSafely.sh Sat Mar 17 12:59:50 2012
@@ -90,7 +90,7 @@
   shift
 fi
 
-ULIMIT=$1
+TIMELIMIT=$1
 EXITOK=$2
 INFILE=$3
 OUTFILE=$4
@@ -111,13 +111,13 @@
     # Disable core file emission, the script doesn't find it anyway because it
     # is put into /cores.
     ULIMITCMD="$ULIMITCMD ulimit -c 0;"
-    ULIMITCMD="$ULIMITCMD ulimit -t $ULIMIT;"
+    ULIMITCMD="$ULIMITCMD ulimit -t $TIMELIMIT;"
     # To prevent infinite loops which fill up the disk, specify a limit on size
     # of files being output by the tests. 10 MB should be enough for anybody. ;)
     ULIMITCMD="$ULIMITCMD ulimit -f 10485760;"
     ;;
   *)
-    ULIMITCMD="$ULIMITCMD ulimit -t $ULIMIT;"
+    ULIMITCMD="$ULIMITCMD ulimit -t $TIMELIMIT;"
     ULIMITCMD="$ULIMITCMD ulimit -c unlimited;"
     # To prevent infinite loops which fill up the disk, specify a limit on size
     # of files being output by the tests. 10 MB should be enough for anybody. ;)
@@ -142,7 +142,7 @@
 PWD=`pwd`
 COMMAND="$RUN_UNDER $PROGRAM $*"
 if [ -n "$WATCHDOG" ]; then
-  COMMAND="${DIR}TimedExec.sh $ULIMIT $PWD $COMMAND"
+  COMMAND="${DIR}TimedExec.sh $TIMELIMIT $PWD $COMMAND"
 fi
 COMMAND=$(echo "$COMMAND" | sed -e 's#"#\\"#g')
 





More information about the llvm-commits mailing list