llvm-project/compiler-rt/test/safestack
Vlad Tsyrklevich 00705a7f95 SafeStack: Fix flaky test (PR39001)
Summary:
pthread_join() can return before a thread finishes exit()ing in the
kernel and a subsequent tgkill() can report the thread still alive.
Update the pthread-cleanup.c test to sleep and retry if it hits this
possible flake.

Thanks to Jeremy Morse for reporting.

Reviewers: jmorse, eugenis, vitalybuka

Reviewed By: jmorse, vitalybuka

Subscribers: delcypher, jfb, llvm-commits, #sanitizers, kcc

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

llvm-svn: 342763
2018-09-21 19:02:32 +00:00
..
CMakeLists.txt [compiler-rt] Fix VisualStudio virtual folders layout 2016-07-11 21:51:56 +00:00
buffer-copy-vla.c
buffer-copy.c
canary.c [Safestack] Fix the canary test to catch the libc's message regarding stack smashing 2017-05-10 08:06:42 +00:00
init.c
lit.cfg SafeStack: Disable Darwin support 2018-08-14 19:46:16 +00:00
lit.site.cfg.in Replace hardcoded comment at 'lit.site.cfg.in' 2016-04-16 07:03:45 +00:00
lto.c
overflow.c Ensure safestack overflow test doesn't segfault 2016-01-07 22:19:12 +00:00
pthread-cleanup.c SafeStack: Fix flaky test (PR39001) 2018-09-21 19:02:32 +00:00
pthread-stack-size.c SafeStack: Use correct unsafe stack sizes 2018-08-21 17:29:01 +00:00
pthread.c SafeStack: Disable Darwin support 2018-08-14 19:46:16 +00:00
utils.h