summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/tsan/fork_multithreaded.cc
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2016-03-24 11:54:33 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2016-03-24 11:54:33 +0000
commit3bab18d4af327cdb0e2de49efe62f491899c67d0 (patch)
tree0541e1070a3a7acf00760780f5f6283a28945e84 /compiler-rt/test/tsan/fork_multithreaded.cc
parent572ca71573e6a8913f4b7180c8e9fcf1ecb33537 (diff)
downloadbcm5719-llvm-3bab18d4af327cdb0e2de49efe62f491899c67d0.tar.gz
bcm5719-llvm-3bab18d4af327cdb0e2de49efe62f491899c67d0.zip
[tsan] Fix fork() and fork-based tests for OS X
On OS X, fork() under TSan asserts (in debug builds only) because REAL(fork) calls some intercepted functions, which check that no internal locks are held via CheckNoLocks(). But the wrapper of fork intentionally holds some locks. This patch fixes that by using ScopedIgnoreInterceptors during the call to REAL(fork). After that, all the fork-based tests seem to pass on OS X, so let's just remove all the UNSUPPORTED: darwin annotations we have. Differential Revision: http://reviews.llvm.org/D18409 llvm-svn: 264261
Diffstat (limited to 'compiler-rt/test/tsan/fork_multithreaded.cc')
-rw-r--r--compiler-rt/test/tsan/fork_multithreaded.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler-rt/test/tsan/fork_multithreaded.cc b/compiler-rt/test/tsan/fork_multithreaded.cc
index b345f58ad0c..33eef93c8ec 100644
--- a/compiler-rt/test/tsan/fork_multithreaded.cc
+++ b/compiler-rt/test/tsan/fork_multithreaded.cc
@@ -1,6 +1,5 @@
// RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s -check-prefix=CHECK-DIE
// RUN: %clangxx_tsan -O1 %s -o %t && %env_tsan_opts=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>
OpenPOWER on IntegriCloud