HomePhabricator

[tsan] Fix fork() and fork-based tests for OS X

Description

[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

Details

Committed
kuba.breckaMar 24 2016, 4:54 AM
Differential Revision
D18409: [tsan] Fix fork() and fork-based tests for OS X
Branches
Unknown
Tags
Unknown