Disable failing tests lib/asan/tests on NetBSD
authorKamil Rytarowski <n54@gmx.com>
Tue, 9 Oct 2018 13:25:13 +0000 (13:25 +0000)
committerKamil Rytarowski <n54@gmx.com>
Tue, 9 Oct 2018 13:25:13 +0000 (13:25 +0000)
These isses are not analyzed.

llvm-svn: 344045

compiler-rt/lib/asan/tests/asan_interface_test.cc
compiler-rt/lib/asan/tests/asan_noinst_test.cc

index 69c8fe6..b5c8303 100644 (file)
@@ -102,6 +102,7 @@ TEST(AddressSanitizerInterface, GetHeapSizeTest) {
   }
 }
 
+#if !defined(__NetBSD__)
 static const size_t kManyThreadsMallocSizes[] = {5, 1UL<<10, 1UL<<14, 357};
 static const size_t kManyThreadsIterations = 250;
 static const size_t kManyThreadsNumThreads =
@@ -135,6 +136,7 @@ TEST(AddressSanitizerInterface, ManyThreadsWithStatsStressTest) {
   // so we can't check for equality here.
   EXPECT_LT(after_test, before_test + (1UL<<20));
 }
+#endif
 
 static void DoDoubleFree() {
   int *x = Ident(new int);
index 65acb28..3e36684 100644 (file)
@@ -153,6 +153,7 @@ TEST(AddressSanitizer, QuarantineTest) {
   EXPECT_LT(i, max_i);
 }
 
+#if !defined(__NetBSD__)
 void *ThreadedQuarantineTestWorker(void *unused) {
   (void)unused;
   u32 seed = my_rand();
@@ -187,6 +188,7 @@ TEST(AddressSanitizer, ThreadedQuarantineTest) {
     EXPECT_LT(mmaped2 - mmaped1, 320U * (1 << 20));
   }
 }
+#endif
 
 void *ThreadedOneSizeMallocStress(void *unused) {
   (void)unused;