[compiler-rt] r222826 - [Asan] Fix the heavy_uar_test.cc test to pass on FreeBSD
Viktor Kutuzov
vkutuzov at accesssoftek.com
Wed Nov 26 03:38:46 PST 2014
Author: vkutuzov
Date: Wed Nov 26 05:38:45 2014
New Revision: 222826
URL: http://llvm.org/viewvc/llvm-project?rev=222826&view=rev
Log:
[Asan] Fix the heavy_uar_test.cc test to pass on FreeBSD
Differential Revision: http://reviews.llvm.org/D6406
Modified:
compiler-rt/trunk/test/asan/TestCases/heavy_uar_test.cc
Modified: compiler-rt/trunk/test/asan/TestCases/heavy_uar_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/heavy_uar_test.cc?rev=222826&r1=222825&r2=222826&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/heavy_uar_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/heavy_uar_test.cc Wed Nov 26 05:38:45 2014
@@ -42,15 +42,19 @@ int main(int argc, char **argv) {
RecursiveFunctionWithStackFrame<500>(depth);
RecursiveFunctionWithStackFrame<1024>(depth);
RecursiveFunctionWithStackFrame<2000>(depth);
+ // The stack size is tight for the main thread in multithread
+ // environment on FreeBSD.
+#if !defined(__FreeBSD__)
RecursiveFunctionWithStackFrame<5000>(depth);
RecursiveFunctionWithStackFrame<10000>(depth);
+#endif
}
char *stale_stack = LeakStack();
RecursiveFunctionWithStackFrame<1024>(10);
stale_stack[100]++;
// CHECK: ERROR: AddressSanitizer: stack-use-after-return on address
// CHECK: is located in stack of thread T0 at offset {{116|132}} in frame
- // CHECK: in LeakStack(){{.*}}heavy_uar_test.cc:
+ // CHECK: in LeakStack{{.*}}heavy_uar_test.cc:
// CHECK: [{{16|32}}, {{1040|1056}}) 'x'
return 0;
}
More information about the llvm-commits
mailing list