File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
lldb/test/API/driver/terminal Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ import lldb
2+ from lldbsuite .test .decorators import *
3+ from lldbsuite .test .lldbtest import *
4+ from lldbsuite .test import lldbutil
5+ from lldbsuite .test .lldbpexpect import PExpectTest
6+
7+
8+ class TerminalDimensionsTest (PExpectTest ):
9+ NO_DEBUG_INFO_TESTCASE = True
10+
11+ @skipIfAsan
12+ def test (self ):
13+ """Test that the lldb driver correctly reports the (PExpect) terminal dimension."""
14+ self .launch (dimensions = (40 , 40 ), timeout = 1 )
15+
16+ # Tests clear all the settings so we lose the launch values. Resize the
17+ # window to update the settings. These new values need to be different
18+ # 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" ])
You can’t perform that action at this time.
0 commit comments