forked from OSchip/llvm-project
[tsan] Change some OS X tests to include system headers (xpc.h, mman.h) more explicitly.
llvm-svn: 270713
This commit is contained in:
parent
1795f782e9
commit
f5f140db28
|
@ -3,8 +3,10 @@
|
||||||
// RUN: %clang_tsan %s -o %t -framework Foundation
|
// RUN: %clang_tsan %s -o %t -framework Foundation
|
||||||
// RUN: %run %t 2>&1 | FileCheck %s
|
// RUN: %run %t 2>&1 | FileCheck %s
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
|
||||||
#include <malloc/malloc.h>
|
#include <malloc/malloc.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <sys/mman.h>
|
||||||
|
|
||||||
int some_global;
|
int some_global;
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 | FileCheck %s
|
// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 | FileCheck %s
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
#import <xpc/xpc.h>
|
||||||
|
|
||||||
#import "../test.h"
|
#import "../test.h"
|
||||||
|
|
||||||
|
@ -73,8 +74,8 @@ int main(int argc, const char *argv[]) {
|
||||||
// CHECK: Hello world.
|
// CHECK: Hello world.
|
||||||
// CHECK: WARNING: ThreadSanitizer: data race
|
// CHECK: WARNING: ThreadSanitizer: data race
|
||||||
// CHECK: Write of size 8
|
// CHECK: Write of size 8
|
||||||
// CHECK: #0 {{.*}}xpc-race.mm:33
|
// CHECK: #0 {{.*}}xpc-race.mm:34
|
||||||
// CHECK: Previous write of size 8
|
// CHECK: Previous write of size 8
|
||||||
// CHECK: #0 {{.*}}xpc-race.mm:33
|
// CHECK: #0 {{.*}}xpc-race.mm:34
|
||||||
// CHECK: Location is global 'global'
|
// CHECK: Location is global 'global'
|
||||||
// CHECK: Done.
|
// CHECK: Done.
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
|
// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/Foundation.h>
|
||||||
|
#import <xpc/xpc.h>
|
||||||
|
|
||||||
long global;
|
long global;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue