summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-08-19 19:13:26 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-08-19 19:13:26 +0000
commit0f4e9835c98ae68d53ebd05ac40ada41ddae68aa (patch)
treeb0fdb9bd5579126e7c1efea8999ef33f65d15674 /lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py
parent19bf637eb12c119cdda9fae818813084a9cf2b2a (diff)
downloadbcm5719-llvm-0f4e9835c98ae68d53ebd05ac40ada41ddae68aa.tar.gz
bcm5719-llvm-0f4e9835c98ae68d53ebd05ac40ada41ddae68aa.zip
[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). llvm-svn: 369293
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py b/lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py
index 16ca3a39248..26805bfb07c 100644
--- a/lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py
+++ b/lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py
@@ -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")
OpenPOWER on IntegriCloud