Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / iohandler / resize / TestIOHandlerResize.py
blobd4013472a710b1ee91b0383d1a39784c5b2d7c63
1 """
2 Test resizing in our IOHandlers.
3 """
5 import os
7 import lldb
8 from lldbsuite.test.decorators import *
9 from lldbsuite.test.lldbtest import *
10 from lldbsuite.test.lldbpexpect import PExpectTest
13 class IOHandlerCompletionTest(PExpectTest):
14 # PExpect uses many timeouts internally and doesn't play well
15 # under ASAN on a loaded machine..
16 @skipIfAsan
17 @skipIfEditlineSupportMissing
18 @skipIf(oslist=["linux"], archs=["arm", "aarch64"])
19 def test_resize(self):
20 # Start with a small window
21 self.launch(dimensions=(10, 10))
23 self.child.send("his is a long sentence missing its first letter.")
25 # Now resize to something bigger
26 self.child.setwinsize(100, 500)
28 # Hit "left" 60 times (to go to the beginning of the line) and insert
29 # a character.
30 self.child.send(60 * "\033[D")
31 self.child.send("T")
33 self.child.expect_exact(
34 "(lldb) This is a long sentence missing its first letter."
36 self.quit()