[llvm-commits] CVS: llvm-test/RunSafelyAndStable.sh

Chris Lattner lattner at cs.uiuc.edu
Tue Aug 2 15:04:42 PDT 2005



Changes in directory llvm-test:

RunSafelyAndStable.sh updated: 1.4 -> 1.5
---
Log message:

Sync up with RunSafely.sh, adding support for cygwin and darwin


---
Diffs of the changes:  (+21 -6)

 RunSafelyAndStable.sh |   27 +++++++++++++++++++++------
 1 files changed, 21 insertions(+), 6 deletions(-)


Index: llvm-test/RunSafelyAndStable.sh
diff -u llvm-test/RunSafelyAndStable.sh:1.4 llvm-test/RunSafelyAndStable.sh:1.5
--- llvm-test/RunSafelyAndStable.sh:1.4	Thu Jul 28 12:02:07 2005
+++ llvm-test/RunSafelyAndStable.sh	Tue Aug  2 17:04:31 2005
@@ -21,12 +21,27 @@
 PROGRAM=$4
 shift 4
 
-ulimit -t $ULIMIT
-rm -f core core.*
-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. ;)
-ulimit -f 10485760
+SYSTEM=`uname -s`
+
+case $SYSTEM in
+  CYGWIN*)
+    ;;
+  Darwin*)
+    # Disable core file emission, the script doesn't find it anyway because it is put
+    # into /cores.
+    ulimit -c 0
+    ulimit -t $ULIMIT
+    # 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. ;)
+    ulimit -f 10485760
+    ;;
+  *)
+    ulimit -t $ULIMIT
+    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. ;)
+    ulimit -f 10485760
+esac
 
 #
 # Run the command, timing its execution.






More information about the llvm-commits mailing list