[compiler-rt] r285634 - [tsan] Enable the tsan/libcxx/ testcase(s) on Darwin

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 31 13:50:15 PDT 2016


Author: kuba.brecka
Date: Mon Oct 31 15:50:15 2016
New Revision: 285634

URL: http://llvm.org/viewvc/llvm-project?rev=285634&view=rev
Log:
[tsan] Enable the tsan/libcxx/ testcase(s) on Darwin

Apparently, the std_shared_ptr.cc testcase works fine on Darwin, even without the instrumented libcxx. Let's enable it.

Differential Revision: https://reviews.llvm.org/D26162


Modified:
    compiler-rt/trunk/test/tsan/libcxx/lit.local.cfg

Modified: compiler-rt/trunk/test/tsan/libcxx/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/libcxx/lit.local.cfg?rev=285634&r1=285633&r2=285634&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/libcxx/lit.local.cfg (original)
+++ compiler-rt/trunk/test/tsan/libcxx/lit.local.cfg Mon Oct 31 15:50:15 2016
@@ -5,6 +5,8 @@ def getRoot(config):
 
 root = getRoot(config)
 
-if not root.has_libcxx:
+# Only run if we have an instrumented libcxx.  On Darwin, run always (we have
+# interceptors to support the system-provided libcxx).
+if not root.has_libcxx and root.host_os != 'Darwin':
   config.unsupported = True
 




More information about the llvm-commits mailing list