[Lldb-commits] [lldb] r369293 - [lldb] Make TestIOHandlerCompletion more stable and document it

Raphael Isemann via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 19 12:13:26 PDT 2019


Author: teemperor
Date: Mon Aug 19 12:13:26 2019
New Revision: 369293

URL: http://llvm.org/viewvc/llvm-project?rev=369293&view=rev
Log:
[lldb] Make TestIOHandlerCompletion more stable and document it

Instead of relying that three tabs show all completions, we should
show all remaining completions which will always stop the mode
where we show completions. Should fix this test on systems that
somehow have more completions that our normal LLDB (as they
would end up being stuck in the mode where we show completions).

Modified:
    lldb/trunk/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py?rev=369293&r1=369292&r2=369293&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py Mon Aug 19 12:13:26 2019
@@ -39,13 +39,16 @@ class IOHandlerCompletionTest(TestBase):
             (lldbtest_config.lldbExec, self.lldbOption, "", exe))
 
         self.expect_string(prompt)
-        self.child.send("\t\t\t")
+        # Start tab completion, go to the next page and then display all with 'a'.
+        self.child.send("\t\ta")
         self.expect_string("register")
 
+        # Try tab completing regi to register.
         self.child.send("regi\t")
         self.expect_string(prompt + "register")
         self.child.send("\n")
 
+        # Start tab completion and abort showing more commands with 'n'.
         self.child.send("\t")
         self.expect_string("More (Y/n/a)")
         self.child.send("n")




More information about the lldb-commits mailing list