[Lldb-commits] [lldb] r369353 - [lldb][NFC] Test quotes when completing

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 20 02:26:58 PDT 2019


Author: teemperor
Date: Tue Aug 20 02:26:58 2019
New Revision: 369353

URL: http://llvm.org/viewvc/llvm-project?rev=369353&view=rev
Log:
[lldb][NFC] Test quotes when completing

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py?rev=369353&r1=369352&r2=369353&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py Tue Aug 20 02:26:58 2019
@@ -91,6 +91,32 @@ class CommandLineCompletionTestCase(Test
                                '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'])




More information about the lldb-commits mailing list