[compiler-rt] r292981 - [tsan] Enable ignore_noninstrumented_modules=1 on Darwin by default
Kuba Mracek via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 24 13:37:51 PST 2017
Author: kuba.brecka
Date: Tue Jan 24 15:37:50 2017
New Revision: 292981
URL: http://llvm.org/viewvc/llvm-project?rev=292981&view=rev
Log:
[tsan] Enable ignore_noninstrumented_modules=1 on Darwin by default
TSan recently got the "ignore_noninstrumented_modules" flag, which disables tracking of read and writes that come from noninstrumented modules (via interceptors). This is a way of suppressing false positives coming from system libraries and other noninstrumented code. This patch turns this on by default on Darwin, where it's supposed to replace the previous solution, "ignore_interceptors_accesses", which disables tracking in *all* interceptors. The new approach should re-enable TSan's ability to find races via interceptors on Darwin.
Differential Revision: https://reviews.llvm.org/D29041
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_flags.inc
compiler-rt/trunk/test/tsan/Darwin/dispatch_main.mm
compiler-rt/trunk/test/tsan/Darwin/dispatch_once_deadlock.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-after.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-apply-race.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-apply.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-async-norace.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-async-race.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-barrier-race.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-barrier.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-blocks.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-data.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-fd.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-groups-destructor.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-groups-leave.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-groups-norace.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-groups-stress.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier-race.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-io-cleanup.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-io-race.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-io.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-once.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-semaphore-norace.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-serial-queue-norace.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-source-cancel.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-source-cancel2.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-source-event.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-source-event2.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-source-registration.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-source-registration2.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-source-serial.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-suspend.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-sync-norace.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-sync-race.mm
compiler-rt/trunk/test/tsan/Darwin/gcd-target-queue-norace.mm
compiler-rt/trunk/test/tsan/Darwin/ignore-noninstrumented.mm
compiler-rt/trunk/test/tsan/Darwin/ignored-interceptors.mm
compiler-rt/trunk/test/tsan/Darwin/libcxx-call-once.mm
compiler-rt/trunk/test/tsan/Darwin/libcxx-future.mm
compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm
compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr.mm
compiler-rt/trunk/test/tsan/Darwin/lit.local.cfg
compiler-rt/trunk/test/tsan/Darwin/norace-objcxx-run-time.mm
compiler-rt/trunk/test/tsan/Darwin/objc-double-property.mm
compiler-rt/trunk/test/tsan/Darwin/objc-simple.mm
compiler-rt/trunk/test/tsan/Darwin/xpc-race.mm
compiler-rt/trunk/test/tsan/Darwin/xpc.mm
compiler-rt/trunk/test/tsan/Unit/lit.site.cfg.in
compiler-rt/trunk/test/tsan/lit.cfg
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_flags.inc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_flags.inc?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_flags.inc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_flags.inc Tue Jan 24 15:37:50 2017
@@ -79,7 +79,7 @@ TSAN_FLAG(bool, die_after_fork, true,
TSAN_FLAG(const char *, suppressions, "", "Suppressions file name.")
TSAN_FLAG(bool, ignore_interceptors_accesses, false,
"Ignore reads and writes from all interceptors.")
-TSAN_FLAG(bool, ignore_noninstrumented_modules, false,
+TSAN_FLAG(bool, ignore_noninstrumented_modules, SANITIZER_MAC ? true : false,
"Interceptors should only detect races when called from instrumented "
"modules.")
TSAN_FLAG(bool, shared_ptr_interceptor, true,
Modified: compiler-rt/trunk/test/tsan/Darwin/dispatch_main.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/dispatch_main.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/dispatch_main.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/dispatch_main.mm Tue Jan 24 15:37:50 2017
@@ -2,7 +2,7 @@
// quits the main thread.
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/dispatch_once_deadlock.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/dispatch_once_deadlock.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/dispatch_once_deadlock.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/dispatch_once_deadlock.mm Tue Jan 24 15:37:50 2017
@@ -1,7 +1,7 @@
// Check that calling dispatch_once from a report callback works.
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 not %run %t 2>&1 | FileCheck %s
+// RUN: not %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
#import <pthread.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-after.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-after.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-after.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-after.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-apply-race.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-apply-race.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-apply-race.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-apply-race.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 | FileCheck %s
+// RUN: %deflake %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-apply.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-apply.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-apply.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-apply.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-async-norace.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-async-norace.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-async-norace.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-async-norace.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-async-race.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-async-race.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-async-race.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-async-race.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 | FileCheck %s
+// RUN: %deflake %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-barrier-race.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-barrier-race.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-barrier-race.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-barrier-race.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 | FileCheck %s
+// RUN: %deflake %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-barrier.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-barrier.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-barrier.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-barrier.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-blocks.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-blocks.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-blocks.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-blocks.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clangxx_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-data.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-data.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-data.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-data.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-fd.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-fd.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-fd.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-fd.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-groups-destructor.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-groups-destructor.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-groups-destructor.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-groups-destructor.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clangxx_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-groups-leave.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-groups-leave.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-groups-leave.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-groups-leave.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-groups-norace.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-groups-norace.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-groups-norace.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-groups-norace.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-groups-stress.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-groups-stress.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-groups-stress.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-groups-stress.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier-race.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier-race.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier-race.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier-race.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 | FileCheck %s
+// RUN: %deflake %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-io-barrier.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-io-cleanup.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-io-cleanup.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-io-cleanup.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-io-cleanup.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-io-race.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-io-race.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-io-race.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-io-race.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 | FileCheck %s
+// RUN: %deflake %run %t 2>&1 | FileCheck %s
// REQUIRES: disabled
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-io.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-io.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-io.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-io.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-once.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-once.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-once.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-once.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-semaphore-norace.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-semaphore-norace.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-semaphore-norace.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-semaphore-norace.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-serial-queue-norace.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-serial-queue-norace.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-serial-queue-norace.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-serial-queue-norace.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-source-cancel.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-source-cancel.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-source-cancel.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-source-cancel.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-source-cancel2.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-source-cancel2.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-source-cancel2.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-source-cancel2.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-source-event.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-source-event.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-source-event.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-source-event.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-source-event2.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-source-event2.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-source-event2.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-source-event2.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-source-registration.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-source-registration.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-source-registration.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-source-registration.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-source-registration2.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-source-registration2.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-source-registration2.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-source-registration2.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-source-serial.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-source-serial.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-source-serial.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-source-serial.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-suspend.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-suspend.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-suspend.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-suspend.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-sync-norace.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-sync-norace.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-sync-norace.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-sync-norace.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-sync-race.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-sync-race.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-sync-race.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-sync-race.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 | FileCheck %s
+// RUN: %deflake %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/gcd-target-queue-norace.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/gcd-target-queue-norace.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/gcd-target-queue-norace.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/gcd-target-queue-norace.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/ignore-noninstrumented.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/ignore-noninstrumented.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/ignore-noninstrumented.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/ignore-noninstrumented.mm Tue Jan 24 15:37:50 2017
@@ -3,7 +3,7 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
// Check that without the flag, there are false positives.
-// RUN: %deflake %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-RACE
+// RUN: %env_tsan_opts=ignore_noninstrumented_modules=0 %deflake %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-RACE
// With ignore_noninstrumented_modules=1, no races are reported.
// RUN: %env_tsan_opts=ignore_noninstrumented_modules=1 %run %t 2>&1 | FileCheck %s
Modified: compiler-rt/trunk/test/tsan/Darwin/ignored-interceptors.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/ignored-interceptors.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/ignored-interceptors.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/ignored-interceptors.mm Tue Jan 24 15:37:50 2017
@@ -6,13 +6,13 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
// Check that without the flag, there are false positives.
-// RUN: %deflake %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-RACE
+// RUN: %env_tsan_opts=ignore_noninstrumented_modules=0 %deflake %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-RACE
// With ignore_interceptors_accesses=1, no races are reported.
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %env_tsan_opts=ignore_noninstrumented_modules=0:ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
// With ignore_interceptors_accesses=1, races in user's code are still reported.
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t race 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-RACE
+// RUN: %env_tsan_opts=ignore_noninstrumented_modules=0:ignore_interceptors_accesses=1 %deflake %run %t race 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-RACE
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/libcxx-call-once.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/libcxx-call-once.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/libcxx-call-once.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/libcxx-call-once.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clangxx_tsan %s -o %t -framework Foundation -std=c++11
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/libcxx-future.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/libcxx-future.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/libcxx-future.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/libcxx-future.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clangxx_tsan %s -o %t
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#include <iostream>
#include <future>
Modified: compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-recursive.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clangxx_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-stress.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-stress.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr-stress.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clangxx_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/libcxx-shared-ptr.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clangxx_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/lit.local.cfg?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/lit.local.cfg (original)
+++ compiler-rt/trunk/test/tsan/Darwin/lit.local.cfg Tue Jan 24 15:37:50 2017
@@ -7,3 +7,5 @@ root = getRoot(config)
if root.host_os not in ['Darwin']:
config.unsupported = True
+
+config.environment['TSAN_OPTIONS'] += ':ignore_noninstrumented_modules=1'
Modified: compiler-rt/trunk/test/tsan/Darwin/norace-objcxx-run-time.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/norace-objcxx-run-time.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/norace-objcxx-run-time.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/norace-objcxx-run-time.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -lc++ -fobjc-arc -lobjc -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
// Check that we do not report races between:
// - Object retain and initialize
Modified: compiler-rt/trunk/test/tsan/Darwin/objc-double-property.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/objc-double-property.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/objc-double-property.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/objc-double-property.mm Tue Jan 24 15:37:50 2017
@@ -1,7 +1,7 @@
-// RUN: %clangxx_tsan -O0 %s -o %t -framework Foundation && %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_tsan -O1 %s -o %t -framework Foundation && %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_tsan -O2 %s -o %t -framework Foundation && %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
-// RUN: %clangxx_tsan -O3 %s -o %t -framework Foundation && %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_tsan -O0 %s -o %t -framework Foundation && %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_tsan -O1 %s -o %t -framework Foundation && %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_tsan -O2 %s -o %t -framework Foundation && %run %t 2>&1 | FileCheck %s
+// RUN: %clangxx_tsan -O3 %s -o %t -framework Foundation && %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/objc-simple.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/objc-simple.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/objc-simple.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/objc-simple.mm Tue Jan 24 15:37:50 2017
@@ -1,7 +1,7 @@
// Test that a simple Obj-C program runs and exits without any warnings.
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/xpc-race.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/xpc-race.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/xpc-race.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/xpc-race.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 | FileCheck %s
+// RUN: %deflake %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
#import <xpc/xpc.h>
Modified: compiler-rt/trunk/test/tsan/Darwin/xpc.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/xpc.mm?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/xpc.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/xpc.mm Tue Jan 24 15:37:50 2017
@@ -1,5 +1,5 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
-// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
+// RUN: %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
#import <xpc/xpc.h>
Modified: compiler-rt/trunk/test/tsan/Unit/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Unit/lit.site.cfg.in?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Unit/lit.site.cfg.in (original)
+++ compiler-rt/trunk/test/tsan/Unit/lit.site.cfg.in Tue Jan 24 15:37:50 2017
@@ -14,3 +14,10 @@ config.test_source_root = config.test_ex
if config.host_os == 'Darwin':
config.parallelism_group = config.darwin_sanitizer_parallelism_group_func
+
+ # On Darwin, we default to ignore_noninstrumented_modules=1, which also
+ # suppresses some races the tests are supposed to find. See tsan/lit.cfg.
+ if 'TSAN_OPTIONS' in config.environment:
+ config.environment['TSAN_OPTIONS'] += ':ignore_noninstrumented_modules=0'
+ else:
+ config.environment['TSAN_OPTIONS'] = 'ignore_noninstrumented_modules=0'
Modified: compiler-rt/trunk/test/tsan/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/lit.cfg?rev=292981&r1=292980&r2=292981&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/lit.cfg (original)
+++ compiler-rt/trunk/test/tsan/lit.cfg Tue Jan 24 15:37:50 2017
@@ -24,6 +24,10 @@ if config.host_os == 'Darwin':
# On Darwin, we default to `abort_on_error=1`, which would make tests run
# much slower. Let's override this and run lit tests with 'abort_on_error=0'.
default_tsan_opts += ':abort_on_error=0'
+ # On Darwin, we default to ignore_noninstrumented_modules=1, which also
+ # suppresses some races the tests are supposed to find. Let's run without this
+ # setting, but turn it back on for Darwin tests (see Darwin/lit.local.cfg).
+ default_tsan_opts += ':ignore_noninstrumented_modules=0'
# Platform-specific default TSAN_OPTIONS for lit tests.
if default_tsan_opts:
More information about the llvm-commits
mailing list