[compiler-rt] r299586 - Simplify test a bit.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 13:26:33 PDT 2017


Author: rafael
Date: Wed Apr  5 15:26:33 2017
New Revision: 299586

URL: http://llvm.org/viewvc/llvm-project?rev=299586&view=rev
Log:
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 :-)

Modified:
    compiler-rt/trunk/test/asan/TestCases/Posix/deep_call_stack.cc

Modified: compiler-rt/trunk/test/asan/TestCases/Posix/deep_call_stack.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Posix/deep_call_stack.cc?rev=299586&r1=299585&r2=299586&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Posix/deep_call_stack.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Posix/deep_call_stack.cc Wed Apr  5 15:26:33 2017
@@ -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




More information about the llvm-commits mailing list