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 llvm-svn: 292981
14 lines
299 B
Plaintext
14 lines
299 B
Plaintext
// Test that a simple Obj-C program runs and exits without any warnings.
|
|
|
|
// RUN: %clang_tsan %s -o %t -framework Foundation
|
|
// RUN: %run %t 2>&1 | FileCheck %s
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
int main() {
|
|
NSLog(@"Hello world");
|
|
}
|
|
|
|
// CHECK: Hello world
|
|
// CHECK-NOT: WARNING: ThreadSanitizer
|