[compiler-rt] r270713 - [tsan] Change some OS X tests to include system headers (xpc.h, mman.h) more explicitly.
Kuba Brecka via llvm-commits
llvm-commits at lists.llvm.org
Wed May 25 09:04:24 PDT 2016
Author: kuba.brecka
Date: Wed May 25 11:04:24 2016
New Revision: 270713
URL: http://llvm.org/viewvc/llvm-project?rev=270713&view=rev
Log:
[tsan] Change some OS X tests to include system headers (xpc.h, mman.h) more explicitly.
Modified:
compiler-rt/trunk/test/tsan/Darwin/malloc_size.mm
compiler-rt/trunk/test/tsan/Darwin/xpc-race.mm
compiler-rt/trunk/test/tsan/Darwin/xpc.mm
Modified: compiler-rt/trunk/test/tsan/Darwin/malloc_size.mm
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/Darwin/malloc_size.mm?rev=270713&r1=270712&r2=270713&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/malloc_size.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/malloc_size.mm Wed May 25 11:04:24 2016
@@ -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;
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=270713&r1=270712&r2=270713&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/xpc-race.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/xpc-race.mm Wed May 25 11:04:24 2016
@@ -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.
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=270713&r1=270712&r2=270713&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/Darwin/xpc.mm (original)
+++ compiler-rt/trunk/test/tsan/Darwin/xpc.mm Wed May 25 11:04:24 2016
@@ -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;
More information about the llvm-commits
mailing list