From 4f91faa96564777e91fc004c53f8da16ca0bcdc7 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 27 Aug 2019 13:09:40 +0000 Subject: 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 --- .../lldbsuite/test/iohandler/completion/TestIOHandlerCompletion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lldb/packages/Python/lldbsuite') 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'. -- cgit v1.2.3