summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-04-05 20:26:33 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-04-05 20:26:33 +0000
commit03994b814daacaedb1237610e46a114dc4a6fb24 (patch)
tree53670c60337273eb12f25f9d97742a0f6d15c34b
parent895f5d8080632e45dfdac8a1c197e246899c2449 (diff)
downloadbcm5719-llvm-03994b814daacaedb1237610e46a114dc4a6fb24.tar.gz
bcm5719-llvm-03994b814daacaedb1237610e46a114dc4a6fb24.zip
Simplify test a bit.
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
-rw-r--r--compiler-rt/test/asan/TestCases/Posix/deep_call_stack.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/Posix/deep_call_stack.cc b/compiler-rt/test/asan/TestCases/Posix/deep_call_stack.cc
index 18ba563dbd2..2d2b056d638 100644
--- a/compiler-rt/test/asan/TestCases/Posix/deep_call_stack.cc
+++ b/compiler-rt/test/asan/TestCases/Posix/deep_call_stack.cc
@@ -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
OpenPOWER on IntegriCloud