Index: test/asan/TestCases/deep_call_stack.cc =================================================================== --- test/asan/TestCases/deep_call_stack.cc +++ test/asan/TestCases/deep_call_stack.cc @@ -1,9 +1,10 @@ // Check that UAR mode can handle very deep recusrion. // export ASAN_OPTIONS=detect_stack_use_after_return=1 // RUN: %clangxx_asan -O2 %s -o %t && \ -// RUN: %run %t 2>&1 | FileCheck %s +// RUN: ulimit -s 4096 && %run %t 2>&1 | FileCheck %s // Also check that use_sigaltstack+verbosity doesn't crash. -// RUN: env ASAN_OPTIONS=verbosity=1:use_sigaltstack=1 %run %t | FileCheck %s +// RUN: ulimit -s 4096 && \ +// RUN: env ASAN_OPTIONS=verbosity=1:use_sigaltstack=1 %run %t | FileCheck %s #include __attribute__((noinline)) @@ -17,9 +18,9 @@ } int main(int argc, char **argv) { - RecursiveFunc(40000, 0); + RecursiveFunc(15000, 0); return 0; } -// CHECK: [40000] ptr: -// CHECK: [20000] ptr: -// CHECK: [00000] ptr +// CHECK: [15000] ptr: +// CHECK: [07000] ptr: +// CHECK: [00000] ptr: