From ba6f3221d635ff182c0e03b71c7dfe206657acea Mon Sep 17 00:00:00 2001 From: Patrik Hagglund Date: Tue, 12 Mar 2013 12:38:10 +0000 Subject: [PATCH] In r169695, the address space limit for tests was replaced with a data segment limit. Now, as a complement, add a stack space limit. Otherwise, tests may grow undesirable large at inifinite recursion. (Seen at r176838, test/Assembler/2010-02-05-FunctionLocalMetadataBecomesNull.ll) llvm-svn: 176862 --- llvm/test/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/test/Makefile b/llvm/test/Makefile index b7b873c8135e..bd6b672dd3d5 100644 --- a/llvm/test/Makefile +++ b/llvm/test/Makefile @@ -75,8 +75,9 @@ ULIMIT=ulimit -t 600 ; ulimit -d 512000 ; ulimit -v 512000 ; else # !AuroraUX # Newer versions of python try to allocate an insane amount of address space for # its thread-local storage, don't set a limit here. +# When -v is not used, then -s has to be used to limit the stack size. # FIXME: Those limits should be enforced by lit instead of globally. -ULIMIT=ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; +ULIMIT=ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -s 8192 ; endif # AuroraUX endif # SunOS