summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-08-20 09:26:58 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-08-20 09:26:58 +0000
commit213a5abb4fa8c4e1f4466edb2cc8b97cf4997942 (patch)
treed76b46aa3a217eb906c4e257dafc44480e697ba7 /lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py
parentf9d90bc5f690de43cbfd8bd15f6f3d3e01471615 (diff)
downloadbcm5719-llvm-213a5abb4fa8c4e1f4466edb2cc8b97cf4997942.tar.gz
bcm5719-llvm-213a5abb4fa8c4e1f4466edb2cc8b97cf4997942.zip
[lldb][NFC] Test quotes when completing
llvm-svn: 369353
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py26
1 files changed, 26 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 f23bd5b3b70..1b97c3b0333 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py
@@ -91,6 +91,32 @@ class CommandLineCompletionTestCase(TestBase):
'arm64'])
@skipIfFreeBSD # timing out on the FreeBSD buildbot
+ def test_quoted_command(self):
+ self.complete_from_to('"set',
+ ['"settings" '])
+
+ @skipIfFreeBSD # timing out on the FreeBSD buildbot
+ def test_quoted_arg_with_quoted_command(self):
+ self.complete_from_to('"settings" "repl',
+ ['"replace" '])
+
+ @skipIfFreeBSD # timing out on the FreeBSD buildbot
+ def test_quoted_arg_without_quoted_command(self):
+ self.complete_from_to('settings "repl',
+ ['"replace" '])
+
+ @skipIfFreeBSD # timing out on the FreeBSD buildbot
+ def test_single_quote_command(self):
+ self.complete_from_to("'set",
+ ["'settings' "])
+
+ @skipIfFreeBSD # timing out on the FreeBSD buildbot
+ def test_terminated_quote_command(self):
+ # This should not crash, but we don't get any
+ # reasonable completions from this.
+ self.complete_from_to("'settings'", [])
+
+ @skipIfFreeBSD # timing out on the FreeBSD buildbot
def test_process_launch_arch_arm(self):
self.complete_from_to('process launch --arch arm',
['arm64'])
OpenPOWER on IntegriCloud