summaryrefslogtreecommitdiff
path: root/test/tsan/thread_name2.cc
AgeCommit message (Collapse)Author
2017-08-30Add NetBSD support in test/tsan/thread_name*.ccKamil Rytarowski
Summary: A snipped from the documentation of thread_setname_np(3): NAME pthread_getname_np - get and set descriptive name of a thread LIBRARY POSIX Threads Library (libpthread, -lpthread) SYNOPSIS #include <pthread.h> int pthread_getname_np(pthread_t thread, char *name, size_t len); int pthread_setname_np(pthread_t thread, const char *name, void *arg); Sponsored by <The NetBSD Foundation> Reviewers: joerg, dvyukov, eugenis, vitalybuka, kcc Reviewed By: dvyukov Subscribers: kubamracek, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D37306 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@312159 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-28[tsan] Mark a few more tests with "UNSUPPORTED: darwin"Kuba Brecka
There's a few more lit tests that require features not available on OS X (MAP_32BIT, pthread_setname_np), let's mark them with "UNSUPPORTED: darwin". Differential Revision: http://reviews.llvm.org/D14923 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@254225 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-06tsan: make invisible test barrier portableDmitry Vyukov
The current implementation does not work on darwin and can have issues with other OSes in future. See http://reviews.llvm.org/D14427 Make it portable once and for all (minus usleep call). Reviewed in: http://reviews.llvm.org/D14434 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@252292 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-10-24[Tsan] Fix the thread_name tests to build on FreeBSDViktor Kutuzov
Differential Revision: http://reviews.llvm.org/D5855 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@220552 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