From 14f382065fd183bd5e4d78fa2d41f4faf9c7d576 Mon Sep 17 00:00:00 2001 From: Bill Seurer Date: Wed, 7 Sep 2016 19:44:04 +0000 Subject: [PATCH] [powerpc] Move #if to appease warnings-as-errors tests Previous patch added a #if which caused a variable and function to be unused. llvm-svn: 280846 --- compiler-rt/lib/asan/tests/asan_interface_test.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/compiler-rt/lib/asan/tests/asan_interface_test.cc b/compiler-rt/lib/asan/tests/asan_interface_test.cc index 4f4b0d1..d684dfe 100644 --- a/compiler-rt/lib/asan/tests/asan_interface_test.cc +++ b/compiler-rt/lib/asan/tests/asan_interface_test.cc @@ -102,6 +102,10 @@ TEST(AddressSanitizerInterface, GetHeapSizeTest) { static const size_t kManyThreadsMallocSizes[] = {5, 1UL<<10, 1UL<<14, 357}; static const size_t kManyThreadsIterations = 250; + +#ifndef __powerpc64__ +// FIXME: This has not reliably worked on powerpc since r279664. Re-enable +// this once the problem is tracked down and fixed. static const size_t kManyThreadsNumThreads = (SANITIZER_WORDSIZE == 32) ? 40 : 200; @@ -117,9 +121,6 @@ static void *ManyThreadsWithStatsWorker(void *arg) { return 0; } -#ifndef __powerpc64__ -// FIXME: This has not reliably worked on powerpc since r279664. Re-enable -// this once the problem is tracked down and fixed. TEST(AddressSanitizerInterface, ManyThreadsWithStatsStressTest) { size_t before_test, after_test, i; pthread_t threads[kManyThreadsNumThreads]; -- 2.7.4