Skip to content

Commit 213a5ab

Browse files
committed
[lldb][NFC] Test quotes when completing
llvm-svn: 369353
1 parent f9d90bc commit 213a5ab

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,32 @@ def test_process_launch_arch(self):
9090
['mips',
9191
'arm64'])
9292

93+
@skipIfFreeBSD # timing out on the FreeBSD buildbot
94+
def test_quoted_command(self):
95+
self.complete_from_to('"set',
96+
['"settings" '])
97+
98+
@skipIfFreeBSD # timing out on the FreeBSD buildbot
99+
def test_quoted_arg_with_quoted_command(self):
100+
self.complete_from_to('"settings" "repl',
101+
['"replace" '])
102+
103+
@skipIfFreeBSD # timing out on the FreeBSD buildbot
104+
def test_quoted_arg_without_quoted_command(self):
105+
self.complete_from_to('settings "repl',
106+
['"replace" '])
107+
108+
@skipIfFreeBSD # timing out on the FreeBSD buildbot
109+
def test_single_quote_command(self):
110+
self.complete_from_to("'set",
111+
["'settings' "])
112+
113+
@skipIfFreeBSD # timing out on the FreeBSD buildbot
114+
def test_terminated_quote_command(self):
115+
# This should not crash, but we don't get any
116+
# reasonable completions from this.
117+
self.complete_from_to("'settings'", [])
118+
93119
@skipIfFreeBSD # timing out on the FreeBSD buildbot
94120
def test_process_launch_arch_arm(self):
95121
self.complete_from_to('process launch --arch arm',

0 commit comments

Comments
 (0)