brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1020 B · 84a8ab9 Raw
37 lines · python
1"""2Test resizing in our IOHandlers.3"""4 5import os6 7import lldb8from lldbsuite.test.decorators import *9from lldbsuite.test.lldbtest import *10from lldbsuite.test.lldbpexpect import PExpectTest11 12 13class IOHandlerCompletionTest(PExpectTest):14    # PExpect uses many timeouts internally and doesn't play well15    # under ASAN on a loaded machine..16    @skipIfAsan17    @skipIfEditlineSupportMissing18    @skipIf(oslist=["linux"], archs=["arm$", "aarch64"])19    def test_resize(self):20        # Start with a small window21        self.launch(dimensions=(10, 10))22 23        self.child.send("his is a long sentence missing its first letter.")24 25        # Now resize to something bigger26        self.child.setwinsize(100, 500)27 28        # Hit "left" 60 times (to go to the beginning of the line) and insert29        # a character.30        self.child.send(60 * "\033[D")31        self.child.send("T")32 33        self.child.expect_exact(34            "(lldb) This is a long sentence missing its first letter."35        )36        self.quit()37