summaryrefslogtreecommitdiff
path: root/test/tsan/vfork.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
commitdede08a53f245615e41f72441daa1f4b826e7d03 (patch)
tree5ac3439ebfae0a4d8c4d359ca1de39e55baec813 /test/tsan/vfork.cc
parentfae6b41b0c7c561e2e1aa659dddcb4b9a9826fbd (diff)
[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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@264261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/vfork.cc')
-rw-r--r--test/tsan/vfork.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/tsan/vfork.cc b/test/tsan/vfork.cc
index 98a82623e..5ae1dd1ab 100644
--- a/test/tsan/vfork.cc
+++ b/test/tsan/vfork.cc
@@ -1,5 +1,4 @@
// RUN: %clangxx_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
-// UNSUPPORTED: darwin
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>