summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-08-28 10:17:23 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-08-28 10:17:23 +0000
commitefb8b7b1ec48caef82f1326f0f81528933d83629 (patch)
tree5f4d0535de262d46425df6cb902cdd454f3b72e6 /lldb/packages/Python/lldbsuite/test/functionalities
parent1c5b143c990ceca118eaa9966a40496046e0a2de (diff)
downloadbcm5719-llvm-efb8b7b1ec48caef82f1326f0f81528933d83629.tar.gz
bcm5719-llvm-efb8b7b1ec48caef82f1326f0f81528933d83629.zip
[lldb] Fix and test completion for ambiguous long options
The refactoring patch for the option completion broke the completion for ambiguous long options. As this feature was also untested (as testing ambiguous options with the current test methods is impossible), I just noticed now. This patch restores the old behavior and adds a test for this feature. llvm-svn: 370185
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py b/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py
index 2df341e572d..969a7b543e0 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py
@@ -91,6 +91,13 @@ class CommandLineCompletionTestCase(TestBase):
'arm64'])
@skipIfFreeBSD # timing out on the FreeBSD buildbot
+ def test_ambiguous_long_opt(self):
+ self.completions_match('breakpoint modify --th',
+ ['--thread-id',
+ '--thread-index',
+ '--thread-name'])
+
+ @skipIfFreeBSD # timing out on the FreeBSD buildbot
def test_plugin_load(self):
self.complete_from_to('plugin load ', [])
OpenPOWER on IntegriCloud