brintos

brintos / llvm-project-archived public Read only

0
0
Text · 820 B · 9ab3745 Raw
23 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test import lldbutil5from lldbsuite.test.lldbpexpect import PExpectTest6 7 8class TerminalDimensionsTest(PExpectTest):9    NO_DEBUG_INFO_TESTCASE = True10 11    @skipIfAsan12    def test(self):13        """Test that the lldb driver correctly reports the (PExpect) terminal dimension."""14        self.launch(dimensions=(40, 40))15 16        # Tests clear all the settings so we lose the launch values. Resize the17        # window to update the settings. These new values need to be different18        # to trigger a SIGWINCH.19        self.child.setwinsize(20, 60)20 21        self.expect("settings show term-height", ["term-height (unsigned) = 20"])22        self.expect("settings show term-width", ["term-width (unsigned) = 60"])23