[compiler-rt] r345599 - Adapt ASan test heavy_uar_test for NetBSD

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 30 06:49:15 PDT 2018


Author: kamil
Date: Tue Oct 30 06:49:15 2018
New Revision: 345599

URL: http://llvm.org/viewvc/llvm-project?rev=345599&view=rev
Log:
Adapt ASan test heavy_uar_test for NetBSD

The stack size is tight for the main thread in multithread
environment and follow the FreeBSD approach of reducing stack
usage.

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=345599&r1=345598&r2=345599&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/heavy_uar_test.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/heavy_uar_test.cc Tue Oct 30 06:49:15 2018
@@ -53,8 +53,8 @@ int main(int argc, char **argv) {
     RecursiveFunctionWithStackFrame<1024>(depth);
     RecursiveFunctionWithStackFrame<2000>(depth);
     // The stack size is tight for the main thread in multithread
-    // environment on FreeBSD.
-#if !defined(__FreeBSD__)
+    // environment on FreeBSD and NetBSD.
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
     RecursiveFunctionWithStackFrame<5000>(depth);
     RecursiveFunctionWithStackFrame<10000>(depth);
 #endif




More information about the llvm-commits mailing list