hanchenye-llvm-project/lldb/packages/Python/lldbsuite
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
..
support test infra cleanup: convert test_runner lib into package 2016-04-19 04:20:35 +00:00
test Fix race in TestExitDuringStep and unify pseudo_barrier handling 2016-05-10 07:54:25 +00:00
test_event Fix send and receive of ACK byte in test infrastructure for Python 3.5 2016-04-26 15:15:29 +00:00
__init__.py Added lldbsuite.lldb_test_root, switched formatter to use it. 2015-12-07 06:19:48 +00:00