summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/test/tsan/Darwin/malloc_size.mm4
-rw-r--r--compiler-rt/test/tsan/Darwin/xpc-race.mm5
-rw-r--r--compiler-rt/test/tsan/Darwin/xpc.mm1
3 files changed, 7 insertions, 3 deletions
diff --git a/compiler-rt/test/tsan/Darwin/malloc_size.mm b/compiler-rt/test/tsan/Darwin/malloc_size.mm
index 3d3629b73e7..485d85bba4f 100644
--- a/compiler-rt/test/tsan/Darwin/malloc_size.mm
+++ b/compiler-rt/test/tsan/Darwin/malloc_size.mm
@@ -3,8 +3,10 @@
// RUN: %clang_tsan %s -o %t -framework Foundation
// RUN: %run %t 2>&1 | FileCheck %s
-#import <Foundation/Foundation.h>
#include <malloc/malloc.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/mman.h>
int some_global;
diff --git a/compiler-rt/test/tsan/Darwin/xpc-race.mm b/compiler-rt/test/tsan/Darwin/xpc-race.mm
index 957613f3bd9..9141da42e3a 100644
--- a/compiler-rt/test/tsan/Darwin/xpc-race.mm
+++ b/compiler-rt/test/tsan/Darwin/xpc-race.mm
@@ -2,6 +2,7 @@
// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
+#import <xpc/xpc.h>
#import "../test.h"
@@ -73,8 +74,8 @@ int main(int argc, const char *argv[]) {
// CHECK: Hello world.
// CHECK: WARNING: ThreadSanitizer: data race
// CHECK: Write of size 8
-// CHECK: #0 {{.*}}xpc-race.mm:33
+// CHECK: #0 {{.*}}xpc-race.mm:34
// CHECK: Previous write of size 8
-// CHECK: #0 {{.*}}xpc-race.mm:33
+// CHECK: #0 {{.*}}xpc-race.mm:34
// CHECK: Location is global 'global'
// CHECK: Done.
diff --git a/compiler-rt/test/tsan/Darwin/xpc.mm b/compiler-rt/test/tsan/Darwin/xpc.mm
index c34b948a368..a939b02ef21 100644
--- a/compiler-rt/test/tsan/Darwin/xpc.mm
+++ b/compiler-rt/test/tsan/Darwin/xpc.mm
@@ -2,6 +2,7 @@
// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
#import <Foundation/Foundation.h>
+#import <xpc/xpc.h>
long global;
OpenPOWER on IntegriCloud