teak-llvm/lldb/packages/Python/lldbsuite/test/functionalities/thread
Pavel Labath ebc7135f8e Fix race in TestExitDuringStep and unify pseudo_barrier handling
Summary:
TestExitDuringStep was very rarely hanging on the buildbots. I can't be sure, but I believe this
was because of the fact that it declared its pseudo_barrier variable as "volatile int", which is
not sufficient to guarantee corectness (also, all other tests used atomic variables for this, and
they were passing reliably AFAIK). Besides switching to an atomic variable in this test as well,
I have also took this opportunity to unify all the copies of the pseudo_barrier code to a single
place to reduce the chance of this happening again.

Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D20065

llvm-svn: 269025
2016-05-10 07:54:25 +00:00
..
backtrace_all Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
break_after_join Fix race in TestExitDuringStep and unify pseudo_barrier handling 2016-05-10 07:54:25 +00:00
concurrent_events Fix race in TestExitDuringStep and unify pseudo_barrier handling 2016-05-10 07:54:25 +00:00
crash_during_step [LLDB][MIPS] Generalise MIPS arch names 2016-02-10 06:58:13 +00:00
create_after_attach Remove flaky decorator from two tests on linux 2016-04-25 10:32:23 +00:00
create_during_step Fix race in TestExitDuringStep and unify pseudo_barrier handling 2016-05-10 07:54:25 +00:00
exit_during_break Fix race in TestExitDuringStep and unify pseudo_barrier handling 2016-05-10 07:54:25 +00:00
exit_during_step Fix race in TestExitDuringStep and unify pseudo_barrier handling 2016-05-10 07:54:25 +00:00
jump Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
multi_break Fix race in TestExitDuringStep and unify pseudo_barrier handling 2016-05-10 07:54:25 +00:00
state Fixup r266327 2016-04-18 11:01:41 +00:00
step_out Fix race in TestExitDuringStep and unify pseudo_barrier handling 2016-05-10 07:54:25 +00:00
thread_exit Fix race in TestExitDuringStep and unify pseudo_barrier handling 2016-05-10 07:54:25 +00:00
thread_specific_break Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
thread_specific_break_plus_condition Remove flaky decorator from three tests on linux 2016-04-27 12:43:37 +00:00
main.cpp
Makefile Merge ENABLE_THREADS and ENABLE_STD_THREADS markers 2015-12-15 12:11:00 +00:00
TestNumThreads.py Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00