[PATCH] D14835: [tsan] Make tsan_test_util_posix.cc call pthread interceptors on OS X

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 19 11:08:12 PST 2015


kubabrecka created this revision.
kubabrecka added reviewers: dvyukov, kcc, glider, samsonov.
kubabrecka added subscribers: llvm-commits, zaks.anna, ismailp.

The tsan_test_util_posix.cc implementation of mutexes call pthread APIs directly, which on OS X don't end up calling the intercepted versions and we miss the synchronization.  This patch changes the unit tests to directly call the intercepted versions.  This fixes several test failures on OS X.

http://reviews.llvm.org/D14835

Files:
  lib/tsan/tests/rtl/tsan_test_util_posix.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14835.40680.patch
Type: text/x-patch
Size: 6342 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151119/408d243a/attachment.bin>


More information about the llvm-commits mailing list