[llvm-commits] [llvm] r77767 - /llvm/trunk/test/Makefile
Daniel Dunbar
daniel at zuster.org
Fri Jul 31 20:37:54 PDT 2009
Author: ddunbar
Date: Fri Jul 31 22:37:54 2009
New Revision: 77767
URL: http://llvm.org/viewvc/llvm-project?rev=77767&view=rev
Log:
Avoid a problem with ulimit on Solaris & friends, patch by Edward O'Callaghan!
Modified:
llvm/trunk/test/Makefile
Modified: llvm/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Makefile?rev=77767&r1=77766&r2=77767&view=diff
==============================================================================
--- llvm/trunk/test/Makefile (original)
+++ llvm/trunk/test/Makefile Fri Jul 31 22:37:54 2009
@@ -52,10 +52,16 @@
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 @@
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
More information about the llvm-commits
mailing list