[compiler-rt] r253558 - [tsan] Mark tests that need pthread barriers with "UNSUPPORTED: darwin"
Kuba Brecka via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 19 04:02:04 PST 2015
Author: kuba.brecka
Date: Thu Nov 19 06:02:02 2015
New Revision: 253558
URL: http://llvm.org/viewvc/llvm-project?rev=253558&view=rev
Log:
[tsan] Mark tests that need pthread barriers with "UNSUPPORTED: darwin"
Several testcases need pthread barriers (e.g. all bench_*.cc which use test/tsan/bench.h) which are not available on OS X. Let's mark them with "UNSUPPORTED: darwin".
Differential Revision: http://reviews.llvm.org/D14636
Modified:
compiler-rt/trunk/test/tsan/barrier.cc
compiler-rt/trunk/test/tsan/bench_acquire_only.cc
compiler-rt/trunk/test/tsan/bench_acquire_release.cc
compiler-rt/trunk/test/tsan/bench_local_mutex.cc
compiler-rt/trunk/test/tsan/bench_mutex.cc
compiler-rt/trunk/test/tsan/bench_release_only.cc
compiler-rt/trunk/test/tsan/bench_rwmutex.cc
compiler-rt/trunk/test/tsan/bench_single_writer.cc
compiler-rt/trunk/test/tsan/bench_ten_mutexes.cc
compiler-rt/trunk/test/tsan/race_on_barrier.c
compiler-rt/trunk/test/tsan/race_on_barrier2.c
Modified: compiler-rt/trunk/test/tsan/barrier.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/barrier.cc?rev=253558&r1=253557&r2=253558&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/barrier.cc (original)
+++ compiler-rt/trunk/test/tsan/barrier.cc Thu Nov 19 06:02:02 2015
@@ -2,6 +2,9 @@
// CHECK-NOT: ThreadSanitizer: data race
// CHECK: DONE
+// pthread barriers are not available on OS X
+// UNSUPPORTED: darwin
+
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
Modified: compiler-rt/trunk/test/tsan/bench_acquire_only.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/bench_acquire_only.cc?rev=253558&r1=253557&r2=253558&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/bench_acquire_only.cc (original)
+++ compiler-rt/trunk/test/tsan/bench_acquire_only.cc Thu Nov 19 06:02:02 2015
@@ -1,6 +1,9 @@
// RUN: %clangxx_tsan %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
+// bench.h needs pthread barriers which are not available on OS X
+// UNSUPPORTED: darwin
+
#include "bench.h"
int x;
Modified: compiler-rt/trunk/test/tsan/bench_acquire_release.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/bench_acquire_release.cc?rev=253558&r1=253557&r2=253558&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/bench_acquire_release.cc (original)
+++ compiler-rt/trunk/test/tsan/bench_acquire_release.cc Thu Nov 19 06:02:02 2015
@@ -1,6 +1,9 @@
// RUN: %clangxx_tsan %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
+// bench.h needs pthread barriers which are not available on OS X
+// UNSUPPORTED: darwin
+
#include "bench.h"
int x;
Modified: compiler-rt/trunk/test/tsan/bench_local_mutex.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/bench_local_mutex.cc?rev=253558&r1=253557&r2=253558&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/bench_local_mutex.cc (original)
+++ compiler-rt/trunk/test/tsan/bench_local_mutex.cc Thu Nov 19 06:02:02 2015
@@ -1,6 +1,9 @@
// RUN: %clangxx_tsan %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
+// bench.h needs pthread barriers which are not available on OS X
+// UNSUPPORTED: darwin
+
#include "bench.h"
pthread_mutex_t *mtx;
Modified: compiler-rt/trunk/test/tsan/bench_mutex.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/bench_mutex.cc?rev=253558&r1=253557&r2=253558&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/bench_mutex.cc (original)
+++ compiler-rt/trunk/test/tsan/bench_mutex.cc Thu Nov 19 06:02:02 2015
@@ -1,6 +1,9 @@
// RUN: %clangxx_tsan %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
+// bench.h needs pthread barriers which are not available on OS X
+// UNSUPPORTED: darwin
+
#include "bench.h"
pthread_mutex_t mtx;
Modified: compiler-rt/trunk/test/tsan/bench_release_only.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/bench_release_only.cc?rev=253558&r1=253557&r2=253558&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/bench_release_only.cc (original)
+++ compiler-rt/trunk/test/tsan/bench_release_only.cc Thu Nov 19 06:02:02 2015
@@ -1,6 +1,9 @@
// RUN: %clangxx_tsan %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
+// bench.h needs pthread barriers which are not available on OS X
+// UNSUPPORTED: darwin
+
#include "bench.h"
int *x;
Modified: compiler-rt/trunk/test/tsan/bench_rwmutex.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/bench_rwmutex.cc?rev=253558&r1=253557&r2=253558&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/bench_rwmutex.cc (original)
+++ compiler-rt/trunk/test/tsan/bench_rwmutex.cc Thu Nov 19 06:02:02 2015
@@ -1,6 +1,9 @@
// RUN: %clangxx_tsan %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
+// bench.h needs pthread barriers which are not available on OS X
+// UNSUPPORTED: darwin
+
#include "bench.h"
pthread_rwlock_t mtx;
Modified: compiler-rt/trunk/test/tsan/bench_single_writer.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/bench_single_writer.cc?rev=253558&r1=253557&r2=253558&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/bench_single_writer.cc (original)
+++ compiler-rt/trunk/test/tsan/bench_single_writer.cc Thu Nov 19 06:02:02 2015
@@ -1,6 +1,9 @@
// RUN: %clangxx_tsan %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
+// bench.h needs pthread barriers which are not available on OS X
+// UNSUPPORTED: darwin
+
#include "bench.h"
int x;
Modified: compiler-rt/trunk/test/tsan/bench_ten_mutexes.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/bench_ten_mutexes.cc?rev=253558&r1=253557&r2=253558&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/bench_ten_mutexes.cc (original)
+++ compiler-rt/trunk/test/tsan/bench_ten_mutexes.cc Thu Nov 19 06:02:02 2015
@@ -1,6 +1,9 @@
// RUN: %clangxx_tsan %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
+// bench.h needs pthread barriers which are not available on OS X
+// UNSUPPORTED: darwin
+
#include "bench.h"
const int kMutex = 10;
Modified: compiler-rt/trunk/test/tsan/race_on_barrier.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/race_on_barrier.c?rev=253558&r1=253557&r2=253558&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/race_on_barrier.c (original)
+++ compiler-rt/trunk/test/tsan/race_on_barrier.c Thu Nov 19 06:02:02 2015
@@ -1,4 +1,8 @@
// RUN: %clang_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
+
+// pthread barriers are not available on OS X
+// UNSUPPORTED: darwin
+
#include "test.h"
pthread_barrier_t B;
Modified: compiler-rt/trunk/test/tsan/race_on_barrier2.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/race_on_barrier2.c?rev=253558&r1=253557&r2=253558&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/race_on_barrier2.c (original)
+++ compiler-rt/trunk/test/tsan/race_on_barrier2.c Thu Nov 19 06:02:02 2015
@@ -1,4 +1,8 @@
// RUN: %clang_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
+
+// pthread barriers are not available on OS X
+// UNSUPPORTED: darwin
+
#include <pthread.h>
#include <stdio.h>
#include <stddef.h>
More information about the llvm-commits
mailing list