summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-08-27 13:09:40 +0000
committerPavel Labath <pavel@labath.sk>2019-08-27 13:09:40 +0000
commit4f91faa96564777e91fc004c53f8da16ca0bcdc7 (patch)
treed777c6aa27a8db2e0e22fd119d5fff019930e661 /lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py
parent2ba5d64a80d0debaec396dbd512e59de9cc82e48 (diff)
downloadbcm5719-llvm-4f91faa96564777e91fc004c53f8da16ca0bcdc7.tar.gz
bcm5719-llvm-4f91faa96564777e91fc004c53f8da16ca0bcdc7.zip
Stabilize TestIOHandlerCompletion
pexpect gives as raw data going to a terminal. This means that if the completed line does not fit the emulated line, the returned data will contain line breaks. On my machine these line breaks happened to be inside the "iohandler/completion" string that the test was searching for. Work around this by telling pexpect to emulate a very wide terminal. llvm-svn: 370054
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py3
1 files changed, 2 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 a6748c65619..a1c07a3b045 100644
--- a/lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py
+++ b/lldb/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py
@@ -38,7 +38,8 @@ class IOHandlerCompletionTest(TestBase):
self.child = pexpect.spawn(
'%s %s %s %s' %
- (lldbtest_config.lldbExec, self.lldbOption, "", exe))
+ (lldbtest_config.lldbExec, self.lldbOption, "", exe),
+ dimensions=(100, 500))
self.expect_string(prompt)
# Start tab completion, go to the next page and then display all with 'a'.
OpenPOWER on IntegriCloud