[Lldb-commits] [lldb] r370054 - Stabilize TestIOHandlerCompletion

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 27 06:09:40 PDT 2019

Author: labath
Date: Tue Aug 27 06:09:40 2019
New Revision: 370054

URL: http://llvm.org/viewvc/llvm-project?rev=370054&view=rev
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

Work around this by telling pexpect to emulate a very wide terminal.


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=370054&r1=370053&r2=370054&view=diff
--- lldb/trunk/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py Tue Aug 27 06:09:40 2019
@@ -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))
         # Start tab completion, go to the next page and then display all with 'a'.

More information about the lldb-commits mailing list