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

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



Changes in directory llvm-test:

RunSafely.sh updated: 1.18 -> 1.19
---
Log message:

Prevent llvm-test from filling up /cores with giant core files on darwin.



---
Diffs of the changes:  (+9 -0)

 RunSafely.sh |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm-test/RunSafely.sh
diff -u llvm-test/RunSafely.sh:1.18 llvm-test/RunSafely.sh:1.19
--- llvm-test/RunSafely.sh:1.18	Thu Jul 28 12:02:07 2005
+++ llvm-test/RunSafely.sh	Tue Aug  2 17:04:00 2005
@@ -23,6 +23,15 @@
 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






More information about the llvm-commits mailing list