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

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

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=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))
 
         self.expect_string(prompt)
         # Start tab completion, go to the next page and then display all with 
'a'.


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to