[llvm-commits] CVS: llvm/test/Makefile

Reid Spencer reid at x10sys.com
Sun Feb 11 12:18:48 PST 2007



Changes in directory llvm/test:

Makefile updated: 1.93 -> 1.94
---
Log message:

For PR1196: http://llvm.org/PR1196 :
Prevent infinite loops and memory bombs by setting a ulimit on time and
space for running the dejagnu tests. 


---
Diffs of the changes:  (+3 -2)

 Makefile |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/test/Makefile
diff -u llvm/test/Makefile:1.93 llvm/test/Makefile:1.94
--- llvm/test/Makefile:1.93	Tue Jan 30 10:06:55 2007
+++ llvm/test/Makefile	Sun Feb 11 14:18:32 2007
@@ -34,8 +34,9 @@
 
 ifneq ($(RUNTEST),)
 check-local:: site.exp
-	PATH="$(LLVMToolDir):$(LLVMExmplDir):$(LLVM_SRC_ROOT)/test/Scripts:$(PATH)" \
-	$(RUNTEST) $(RUNTESTFLAGS)
+	( ulimit -t 600 ; ulimit -d 512000 ; \
+	  PATH="$(LLVMToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$(PATH)" \
+	  $(RUNTEST) $(RUNTESTFLAGS) )
 else
 check-local:: site.exp
 	@echo "*** dejagnu not found.  Make sure runtest is in your PATH, then reconfigure llvm."






More information about the llvm-commits mailing list