diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-11 20:18:32 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-11 20:18:32 +0000 |
commit | ec68fd4391dd401f995b8e9eec3393698dbdf2d7 (patch) | |
tree | ac151e54f30baacf8ce632b818ddf4f63eed06bb | |
parent | b5bb9f5b5cfe89f4b7626671f4923d50f8d4cd6a (diff) |
For PR1196:
Prevent infinite loops and memory bombs by setting a ulimit on time and
space for running the dejagnu tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34184 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile index 9ee8f8e050..5ecc4a227c 100644 --- a/test/Makefile +++ b/test/Makefile @@ -34,8 +34,9 @@ endif 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." |