hanchenye-llvm-project/lldb/packages/Python/lldbsuite/test
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
..
android/platform Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
api Change over the broadcaster/listener process to hold shared or weak pointers 2016-03-07 21:50:25 +00:00
arm_emulation Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
attic Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
benchmarks Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
driver/batch_mode Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
example Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
expression_command Added a testcase that verifies that multiline expressions work. 2016-05-09 21:14:18 +00:00
functionalities Fix race in TestExitDuringStep and unify pseudo_barrier handling 2016-05-10 07:54:25 +00:00
help Fix an issue where the apropos command would not print fully qualified command names for nested command objects 2016-05-02 21:28:40 +00:00
issue_verification fix a race is the LLDB test suite results collection 2016-04-18 16:09:21 +00:00
lang Enable NamespaceLookupTestCase.test_scope_lookup_before_using_with_run_command on linux 2016-05-09 14:43:22 +00:00
linux Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
logging Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
macosx Make sure code that is in the middle of figuring out the correct architecture 2016-02-18 23:58:45 +00:00
make Fix race in TestExitDuringStep and unify pseudo_barrier handling 2016-05-10 07:54:25 +00:00
plugins Adjust for Python-3. 2016-02-12 20:30:47 +00:00
python_api Mark TestPrintStackTraces as flaky on linux 2016-05-09 16:59:29 +00:00
settings [test] Relax stderr expectations on targets with chatty output 2016-04-14 15:52:53 +00:00
source-manager Fix typo in TestSourceManager.py 2016-04-19 09:31:14 +00:00
terminal Remove expected failure and skip decorators for host os. 2016-02-09 21:36:02 +00:00
test_runner test infra cleanup: convert test_runner lib into package 2016-04-19 04:20:35 +00:00
tools Add missing qRegisterInfo option to gdbremote testcase 2016-04-25 20:24:30 +00:00
types Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
warnings/uuid Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
.categories Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
Makefile Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
README-TestSuite Centralize the handling of attach permissions on linux in tests 2016-01-11 10:24:50 +00:00
__init__.py Get rid of global variables in dotest.py 2015-12-08 01:15:30 +00:00
bench-history Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
bench.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
configuration.py test infra: enable single-worker rerun phase for flakey tests. 2015-12-14 21:28:46 +00:00
crashinfo.c Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
decorators.py Decorate TSan tests with "@skipUnlessThreadSanitizer" which skips the tests if the selected compiler can't compile with "-fsanitize=thread". 2016-04-27 15:26:27 +00:00
dosep.py test infra: move test event-related handling into its own package 2016-04-20 16:27:27 +00:00
dotest.py fix argument usage for '-#' command line option 2016-05-05 16:01:15 +00:00
dotest_args.py test infra: enable single-worker rerun phase for flakey tests. 2015-12-14 21:28:46 +00:00
lldb_pylint_helper.py Updated lldb_pylint_helper to work with recent Python package changes. 2015-11-10 20:01:33 +00:00
lldbbench.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbcurses.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbinline.py XFail TestLambdas.py on Windows after fixing some of the problems 2016-05-04 23:32:35 +00:00
lldbpexpect.py Fixed the failing test TestCommandScriptImmediateOutput on MacOSX. Turns out that there are few things to watch out for when writing pexpect tests: 2016-03-30 00:02:13 +00:00
lldbplatform.py Add target and host platform enumerations so we're not using strings. 2016-02-18 18:50:02 +00:00
lldbplatformutil.py [test] Relax stderr expectations on targets with chatty output 2016-04-14 15:52:53 +00:00
lldbtest.py test infra: move test event-related handling into its own package 2016-04-20 16:27:27 +00:00
lldbtest_config.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
lldbutil.py [test] make expect_state_changes actually expect *only* them 2016-04-14 15:52:58 +00:00
lock.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
redo.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
test_categories.py Don't run dwo tests for windows targets. 2016-01-11 18:49:30 +00:00
test_result.py test infra: move test event-related handling into its own package 2016-04-20 16:27:27 +00:00