[compiler-rt] r252402 - [tsan] Turn lit test deadlocks into failures (OS X)

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 7 06:29:40 PST 2015


Author: kuba.brecka
Date: Sat Nov  7 08:29:38 2015
New Revision: 252402

URL: http://llvm.org/viewvc/llvm-project?rev=252402&view=rev
Log:
[tsan] Turn lit test deadlocks into failures (OS X)

Several tests currently deadlock when the lit test suite is run on OS X. Let's mark them as unsupported.

Differential Revision: http://reviews.llvm.org/D14443


Modified:
    compiler-rt/trunk/test/tsan/fork_atexit.cc
    compiler-rt/trunk/test/tsan/fork_deadlock.cc
    compiler-rt/trunk/test/tsan/fork_multithreaded.cc
    compiler-rt/trunk/test/tsan/fork_multithreaded3.cc
    compiler-rt/trunk/test/tsan/signal_reset.cc
    compiler-rt/trunk/test/tsan/signal_sync.cc
    compiler-rt/trunk/test/tsan/signal_thread.cc
    compiler-rt/trunk/test/tsan/vfork.cc

Modified: compiler-rt/trunk/test/tsan/fork_atexit.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/fork_atexit.cc?rev=252402&r1=252401&r2=252402&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/fork_atexit.cc (original)
+++ compiler-rt/trunk/test/tsan/fork_atexit.cc Sat Nov  7 08:29:38 2015
@@ -1,4 +1,5 @@
 // RUN: %clangxx_tsan -O1 %s -o %t && TSAN_OPTIONS="atexit_sleep_ms=50" %run %t 2>&1 | FileCheck %s
+// UNSUPPORTED: darwin
 #include <pthread.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: compiler-rt/trunk/test/tsan/fork_deadlock.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/fork_deadlock.cc?rev=252402&r1=252401&r2=252402&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/fork_deadlock.cc (original)
+++ compiler-rt/trunk/test/tsan/fork_deadlock.cc Sat Nov  7 08:29:38 2015
@@ -1,4 +1,5 @@
 // RUN: %clangxx_tsan -O1 %s -o %t && TSAN_OPTIONS="atexit_sleep_ms=50" %run %t 2>&1 | FileCheck %s
+// UNSUPPORTED: darwin
 #include "test.h"
 #include <errno.h>
 #include <sys/types.h>

Modified: compiler-rt/trunk/test/tsan/fork_multithreaded.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/fork_multithreaded.cc?rev=252402&r1=252401&r2=252402&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/fork_multithreaded.cc (original)
+++ compiler-rt/trunk/test/tsan/fork_multithreaded.cc Sat Nov  7 08:29:38 2015
@@ -1,5 +1,6 @@
 // RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s -check-prefix=CHECK-DIE
 // RUN: %clangxx_tsan -O1 %s -o %t && TSAN_OPTIONS="die_after_fork=0" %run %t 2>&1 | FileCheck %s -check-prefix=CHECK-NODIE
+// UNSUPPORTED: darwin
 #include "test.h"
 #include <errno.h>
 #include <sys/types.h>

Modified: compiler-rt/trunk/test/tsan/fork_multithreaded3.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/fork_multithreaded3.cc?rev=252402&r1=252401&r2=252402&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/fork_multithreaded3.cc (original)
+++ compiler-rt/trunk/test/tsan/fork_multithreaded3.cc Sat Nov  7 08:29:38 2015
@@ -1,4 +1,5 @@
 // RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
+// UNSUPPORTED: darwin
 #include <stdlib.h>
 #include <stdio.h>
 #include <errno.h>

Modified: compiler-rt/trunk/test/tsan/signal_reset.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/signal_reset.cc?rev=252402&r1=252401&r2=252402&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/signal_reset.cc (original)
+++ compiler-rt/trunk/test/tsan/signal_reset.cc Sat Nov  7 08:29:38 2015
@@ -1,4 +1,5 @@
 // RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
+// UNSUPPORTED: darwin
 #include <pthread.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: compiler-rt/trunk/test/tsan/signal_sync.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/signal_sync.cc?rev=252402&r1=252401&r2=252402&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/signal_sync.cc (original)
+++ compiler-rt/trunk/test/tsan/signal_sync.cc Sat Nov  7 08:29:38 2015
@@ -1,4 +1,5 @@
 // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
+// UNSUPPORTED: darwin
 #include "test.h"
 #include <signal.h>
 #include <sys/types.h>

Modified: compiler-rt/trunk/test/tsan/signal_thread.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/signal_thread.cc?rev=252402&r1=252401&r2=252402&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/signal_thread.cc (original)
+++ compiler-rt/trunk/test/tsan/signal_thread.cc Sat Nov  7 08:29:38 2015
@@ -1,4 +1,5 @@
 // RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
+// UNSUPPORTED: darwin
 #include <pthread.h>
 #include <stdio.h>
 #include <stdlib.h>

Modified: compiler-rt/trunk/test/tsan/vfork.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/vfork.cc?rev=252402&r1=252401&r2=252402&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/vfork.cc (original)
+++ compiler-rt/trunk/test/tsan/vfork.cc Sat Nov  7 08:29:38 2015
@@ -1,4 +1,5 @@
 // RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
+// UNSUPPORTED: darwin
 #include <pthread.h>
 #include <stdio.h>
 #include <stdlib.h>




More information about the llvm-commits mailing list