Simplify test a bit.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 5 Apr 2017 20:26:33 +0000 (20:26 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 5 Apr 2017 20:26:33 +0000 (20:26 +0000)
There are two cases to consider:

We are using the internal shell. This will still fail because of
ulimit.
We are using an external shell. In this case the difference is that we
now also constrain FileCheck to use less than 4 MB of of stack, which
it should :-)

llvm-svn: 299586

compiler-rt/test/asan/TestCases/Posix/deep_call_stack.cc

index 18ba563..2d2b056 100644 (file)
@@ -1,6 +1,7 @@
 // Check that UAR mode can handle very deep recusrion.
-// RUN: %clangxx_asan -O2 %s -o %t && \
-// RUN:   (ulimit -s 4096; %env_asan_opts=detect_stack_use_after_return=1 %run %t) 2>&1 | FileCheck %s
+// RUN: %clangxx_asan -O2 %s -o %t
+// RUN: ulimit -s 4096
+// RUN: %env_asan_opts=detect_stack_use_after_return=1 %run %t 2>&1 | FileCheck %s
 
 // Also check that use_sigaltstack+verbosity doesn't crash.
 // RUN: %env_asan_opts=verbosity=1:use_sigaltstack=1:detect_stack_use_after_return=1 %run %t  | FileCheck %s