[OpenMP][Tool] archer tests require tsan
authorprotze@itc.rwth-aachen.de <protze@itc.rwth-aachen.de>
Fri, 22 Nov 2019 16:10:48 +0000 (17:10 +0100)
committerprotze@itc.rwth-aachen.de <protze@itc.rwth-aachen.de>
Fri, 22 Nov 2019 16:11:16 +0000 (17:11 +0100)
Testing for tsan capability in the test-compiler in follow-up review

26 files changed:
openmp/tools/archer/tests/CMakeLists.txt
openmp/tools/archer/tests/barrier/barrier.c
openmp/tools/archer/tests/critical/critical.c
openmp/tools/archer/tests/critical/lock-nested.c
openmp/tools/archer/tests/critical/lock.c
openmp/tools/archer/tests/parallel/parallel-firstprivate.c
openmp/tools/archer/tests/parallel/parallel-simple.c
openmp/tools/archer/tests/parallel/parallel-simple2.c
openmp/tools/archer/tests/races/critical-unrelated.c
openmp/tools/archer/tests/races/lock-nested-unrelated.c
openmp/tools/archer/tests/races/lock-unrelated.c
openmp/tools/archer/tests/races/parallel-simple.c
openmp/tools/archer/tests/races/task-dependency.c
openmp/tools/archer/tests/races/task-taskgroup-unrelated.c
openmp/tools/archer/tests/races/task-taskwait-nested.c
openmp/tools/archer/tests/races/task-two.c
openmp/tools/archer/tests/reduction/parallel-reduction-nowait.c
openmp/tools/archer/tests/reduction/parallel-reduction.c
openmp/tools/archer/tests/task/task-barrier.c
openmp/tools/archer/tests/task/task-create.c
openmp/tools/archer/tests/task/task-dependency.c
openmp/tools/archer/tests/task/task-taskgroup-nested.c
openmp/tools/archer/tests/task/task-taskgroup.c
openmp/tools/archer/tests/task/task-taskwait-nested.c
openmp/tools/archer/tests/task/task-taskwait.c
openmp/tools/archer/tests/worksharing/ordered.c

index 332f3a8..4f70b1a 100644 (file)
@@ -2,11 +2,6 @@
 include(CheckFunctionExists)
 include(CheckLibraryExists)
 
-if (OPENMP_STANDALONE_BUILD)
-  return ()
-endif ()
-
-
 # When using libgcc, -latomic may be needed for atomics
 # (but when using compiler-rt, the atomics will be built-in)
 # Note: we can not check for __atomic_load because clang treats it
index 5d7ca2e..f2f938d 100644 (file)
@@ -12,6 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index 4277a2a..2fc7545 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index 50f0e77..3174aed 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index ca209e1..c4157ae 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index f354978..97e8fcb 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index 0afb193..86f0b53 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index ffb3cca..4663998 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run  | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index d94acf5..736d6f1 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run-race | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index 67d1231..cd8f515 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run-race | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index ec7c96d..358c584 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run-race | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index 94be4da..c77d185 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run-race | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index 012c0d7..beb073d 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run-race | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 #include <unistd.h>
index f2ea782..2f1228b 100644 (file)
@@ -12,6 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 // RUN: %libarcher-compile-and-run-race | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 #include <unistd.h>
index 90322d5..d49b1d2 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run-race | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 #include <unistd.h>
index 7445961..ad7b705 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run-race | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 #include <unistd.h>
index 9010ee7..b91579f 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index 375c7fa..6d1a556 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run| FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 
index 1698f6a..23e597c 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 #include <unistd.h>
index f4dd7a0..700bb33 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 #include <unistd.h>
index fbde943..a7a2a66 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 #include <unistd.h>
index 99d8db0..c82b6be 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 #include <unistd.h>
index 84e7abc..799bd22 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 #include <unistd.h>
index 154bb7a..fe3fb27 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 #include <unistd.h>
index e217021..af334dc 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>
 #include <unistd.h>
index 8a08313..e10d9d1 100644 (file)
@@ -13,6 +13,7 @@
 
 
 // RUN: %libarcher-compile-and-run | FileCheck %s
+// REQUIRES: tsan
 #include <omp.h>
 #include <stdio.h>