summaryrefslogtreecommitdiff
path: root/test/tsan/global_race.cc
AgeCommit message (Collapse)Author
2016-11-11Tread TSan LLVM flags to driver: unit tests.Evgeniy Stepanov
Summary: Unit tests for the new clang flags. Reviewers: eugenis, dvyukov Subscribers: kubabrecka, llvm-commits Patch by Alex Shlyapnikov. Differential Revision: https://reviews.llvm.org/D26462 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@286670 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-30[compiler-rt] Remove SANITIZER_AARCH64_VMA usageAdhemerval Zanella
This patch complete removed SANITIZER_AARCH64_VMA definition and usage. AArch64 ports now supports runtime VMA detection and instrumentation for 39 and 42-bit VMA. It also Rewrite print_address to take a variadic argument list (the addresses to print) and adjust the tests which uses it to the new signature. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@254319 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-12[tsan] Allow symbolizers that don't obtain global symbol sizesKuba Brecka
The default symbolizer, `llvm-symbolizer` provides sizes for global symbols. On OS X, we want to also allow using `atos` (because it's available everywhere and users don't need to copy/install it) and `dladdr` (it's the only available option when running in a sandbox). However, these symbolizers do not supply the symbol sizes, only names and starting addresses. This patch changes the reporting functions to hide the size of the symbol when this value is unavailable, and modifies tests to make this part of the report "optional". Differential Revision: http://reviews.llvm.org/D14608 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@252896 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-20[TSan][MIPS64] Fix few more test cases for MIPS64Mohit K. Bhakkad
Patch by Sagar Thakur Reviewers: dvyukov, samsonov, kcc. Subscribers: dsanders, mohit.bhakkad, Anand.Takale, llvm-commits. Differential Revision: http://reviews.llvm.org/D7290 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@230002 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-21tsan: remove sleeps from testsDmitry Vyukov
Even sleep(1) lead to episodical flakes on some machines. Use an invisible by tsan barrier to enforce required execution order instead. This makes the tests deterministic and faster. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226659 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-19tsan: fix binary names in testsDmitry Vyukov
test_output.sh produces source.cc.exe binaries git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222345 91177308-0d34-0410-b5e6-96231b3b80d8
2014-11-04[TSan] Don't strip binary/library name until the moment we print it.Alexey Samsonov
This commit changes the place where TSan runtime turns full path to binary or shared library into its basename (/usr/foo/mybinary -> mybinary). Instead of doing it as early as possible (when we obtained the full path from the symbolizer), we now do it as late as possible (right before printing the error report). This seems like a right thing to do - stripping to basename is a detail of report formatting implementation, and should belong there. Also, we might need the full path at some point - for example, to match the suppressions. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@221225 91177308-0d34-0410-b5e6-96231b3b80d8
2014-10-09[Tsan] Fix the global_race tests to pass on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D5668 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@219398 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-30tsan: make positive tests more robustDmitry Vyukov
Add a script that is used to deflake inherently flaky tsan tests. It is invoked from lit tests as: %deflake %run %t The script runs the target program up to 10 times, until it produces a tsan warning. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209898 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-30Add %run to all lit testsGreg Fitzgerald
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@207709 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14Move TSan lit-tests under test/tsanAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201414 91177308-0d34-0410-b5e6-96231b3b80d8