diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-01 03:37:54 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-01 03:37:54 +0000 |
commit | 54f975940425134c275ad3e2a2e4b7de025c505b (patch) | |
tree | d91b81f1cb8ca85ecfb04ee4bf8f024db9ebc8c5 /test/Makefile | |
parent | 13f8b36205607ff87ad0c4daf28f63b2660e7c0f (diff) | |
download | external_llvm-54f975940425134c275ad3e2a2e4b7de025c505b.zip external_llvm-54f975940425134c275ad3e2a2e4b7de025c505b.tar.gz external_llvm-54f975940425134c275ad3e2a2e4b7de025c505b.tar.bz2 |
Avoid a problem with ulimit on Solaris & friends, patch by Edward O'Callaghan!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/Makefile b/test/Makefile index baae502..1194cd0 100644 --- a/test/Makefile +++ b/test/Makefile @@ -52,10 +52,16 @@ ifdef IGNORE_TESTS RUNTESTFLAGS += --ignore "$(strip $(IGNORE_TESTS))" endif +# Both AuroraUX & Solaris do not have the -m flag for ulimit +ifeq ($(OS),SunOS) +ULIMIT=ulimit -t 600 ; ulimit -d 512000 ; ulimit -v 512000 ; +else +ULIMIT=ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -v 512000 ; +endif + ifneq ($(RUNTEST),) check-local:: site.exp - ( ulimit -t 600 ; ulimit -d 512000 ; \ - ulimit -m 512000 ; ulimit -v 512000 ; \ + ( $(ULIMIT) \ PATH="$(LLVMToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$(PATH)" \ $(RUNTEST) $(RUNTESTFLAGS) ) else @@ -78,8 +84,7 @@ check-one: site.exp $(TCLSH) echo "proc verbose args { }" ; \ echo "source $(LLVM_SRC_ROOT)/test/lib/llvm.exp" ; \ echo "RunLLVMTests $(TESTPATH)" ) | \ - ( ulimit -t 600 ; ulimit -d 512000 ; \ - ulimit -m 512000 ; ulimit -v 512000 ; \ + ( $(ULIMIT) \ PATH="$(LLVMToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$(PATH)" \ $(TCLSH) ) endif |