summaryrefslogtreecommitdiff
path: root/test/tsan/race_on_mutex.c
AgeCommit message (Collapse)Author
2016-03-18[TSAN] Fix build bot failure for powerpc64leSagar Thakur
race_on_mutex.c passes for powerpc64le too after revision 263778. So removing the XFAIL marker. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@263779 91177308-0d34-0410-b5e6-96231b3b80d8
2016-03-18[TSAN] Relax the expected output of race_on_mutex.cSagar Thakur
The stack trace produced by TSan on MIPS is: Previous write of size 8 at 0x0120ed2930 by thread T1: #0 memset /home/slt/LLVM/llvm/projects/compiler-rt/lib/tsan/rtl/tsan_interceptors.cc:678 (race_on_mutex.c.tmp+0x0120071808) #1 __GI___pthread_mutex_init /build/glibc-g99ldr/glibc-2.19/nptl/pthread_mutex_init.c:84 (libpthread.so.0+0x000000d634) #2 <null> /home/slt/LLVM/llvm/projects/compiler-rt/test/tsan/race_on_mutex.c:11 (race_on_mutex.c.tmp+0x01200ea59c) Reviewers: samsonov, dvyukov Subscribers: llvm-commits, mohit.bhakkad, jaydeep Differential: http://reviews.llvm.org/D17796 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@263778 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-26Use relative lines in CHECKs in race_on_mutex.cAlexander Kornienko
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@262000 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-26[TSAN] XFAIL race_on_mutex.cc for MIPSSagar Thakur
This test expects pthread_mutex_init in the frame #0 of thread T1 but we get memset at frame #0 because memset that is called from pthread_init_mutex is being intercepted by TSan git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@261986 91177308-0d34-0410-b5e6-96231b3b80d8
2016-01-25[powerpc] make test case as xfailBill Seurer
This test case which worked for a while is now failing again. I was unable to trace the change in status to any particular revision. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@258739 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-24[power] Fix test case target checksBill Seurer
Several test cases that used to fail on both power LE and BE now run correctly on LE. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@256391 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-08Adjust line numbers to account for new XFAIL commentsReid Kleckner
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@255076 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-08[PPC64, TSAN] LLVM basic enablement of thread sanitizer for PPC64 (BE and LE)Bill Schmidt
This patch is by Simone Atzeni with portions by Adhemerval Zanella. This contains the LLVM patches to enable the thread sanitizer for PPC64, both big- and little-endian. Two different virtual memory sizes are supported: Old kernels use a 44-bit address space, while newer kernels require a 46-bit address space. There are two companion patches that will be added shortly. There is a Clang patch to actually turn on the use of the thread sanitizer for PPC64. There is also a patch that I wrote to provide interceptor support for setjmp/longjmp on PPC64. Patch discussion at reviews.llvm.org/D12841. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@255057 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-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