summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-11-12 17:28:42 +0100
committerPavel Labath <pavel@labath.sk>2019-11-25 10:07:38 +0100
commitaa16bf15fe38ae4d12d85e7610891dd48e6c0cda (patch)
treed36b37e13ce421a089bf5a902efa5eb4a7ac092e /lldb/packages/Python/lldbsuite/test
parentbae5aac1ff49ed2ae5e6900a85281aa13d64f6b6 (diff)
downloadbcm5719-llvm-aa16bf15fe38ae4d12d85e7610891dd48e6c0cda.tar.gz
bcm5719-llvm-aa16bf15fe38ae4d12d85e7610891dd48e6c0cda.zip
[lldb-vscode] Fix a race in test_extra_launch_commands
Summary: The test used a non-stopping "run" command to launch the process. This is different from the regular launch with no extra launch commands, which uses eLaunchFlagStopAtEntry to ensure that the process stops straight away. I'm not really sure what's supposed to happen in non-stop-at-entry mode, or if that's even supported, but what ended up happening was the launch packet got a reply while the process was running. Then the test case did a continue_to_next_stop(), which queued a *second* resume request (along with the internal "resumes" which were being issued as a part of normal process startup). These two resumes ended up chasing each other's tails inside lldb in a way which produced hilarious log traces. Surprisingly, the test ended up passing most of the time, but it did cause spurious failures when the test seemed to miss a breakpoint. This changes the test to use stop-at-entry mode in the manual launch sequence too, which seems to be enough to make the test pass reliably. Reviewers: clayborg, kusmour, jankratochvil Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D70127
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/launch/TestVSCode_launch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/launch/TestVSCode_launch.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/launch/TestVSCode_launch.py
index 9c75b7e324a..414417f7d7c 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/launch/TestVSCode_launch.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/launch/TestVSCode_launch.py
@@ -352,7 +352,7 @@ class TestVSCode_launch(lldbvscode_testcase.VSCodeTestCaseBase):
'target create "%s"' % (program),
'br s -f main.c -l %d' % first_line,
'br s -f main.c -l %d' % second_line,
- 'run'
+ 'process launch --stop-at-entry'
]
initCommands = ['target list', 'platform list']
OpenPOWER on IntegriCloud