summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/tests/rtl/tsan_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* compiler-rt: Rename .cc file in lib/tsan/tests/{rtl,unit} to .cppNico Weber2019-08-011-65/+0
| | | | | | Like r367463, but for tsan/tests/{rtl,unit}. llvm-svn: 367566
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [sanitizer] On OS X, verify that interceptors work and abort if not, take 2Kuba Brecka2016-03-171-0/+6
| | | | | | | | | | On OS X 10.11+, we have "automatic interceptors", so we don't need to use DYLD_INSERT_LIBRARIES when launching instrumented programs. However, non-instrumented programs that load TSan late (e.g. via dlopen) are currently broken, as TSan will still try to initialize, but the program will crash/hang at random places (because the interceptors don't work). This patch adds an explicit check that interceptors are working, and if not, it aborts and prints out an error message suggesting to explicitly use DYLD_INSERT_LIBRARIES. TSan unit tests run with a statically linked runtime, where interceptors don't work. To avoid aborting the process in this case, the patch replaces `DisableReexec()` with a weak `ReexecDisabled()` function which is defined to return true in unit tests. Differential Revision: http://reviews.llvm.org/D18212 llvm-svn: 263695
* [tsan] Add TSan unit test support for OS XKuba Brecka2015-11-111-0/+7
| | | | | | | | This patch enables building and running TSan unit tests on OS X. Differential Revision: http://reviews.llvm.org/D14546 llvm-svn: 252731
* [Sanitizer] Use different MemoryMappingLayout::DumpListOfModules on Linux ↵Alexey Samsonov2013-12-251-0/+3
| | | | | | | | and Mac. Make a unit test added in r198004 more robust. llvm-svn: 198012
* [TSan] s/uintptr_t/intptr_t in TSan test and enforce stack size limit in one ↵Alexey Samsonov2012-09-181-1/+1
| | | | | | of TSan output tests that somewhy fails otherwise llvm-svn: 164116
* [TSan] fix a typo in test dependencies. Silence few remaining pedantic gcc ↵Alexey Samsonov2012-09-181-2/+8
| | | | | | warnings in TSan tests. llvm-svn: 164115
* [TSan] move: rtl_tests->tests/rtl unit_tests->tests/unit to make a single ↵Alexey Samsonov2012-09-171-0/+44
root for gtest-based tests. Support running these tests from lit via check-tsan command. llvm-svn: 164022
OpenPOWER on IntegriCloud