2 from lldbsuite
.test
.decorators
import *
3 from lldbsuite
.test
.lldbtest
import *
4 from lldbsuite
.test
import lldbutil
7 class TestCase(TestBase
):
10 def test_resize_no_editline(self
):
11 """Tests terminal resizing if the editline isn't used."""
12 dbg
= lldb
.SBDebugger
.Create(False)
13 # Set the input handle to some stream so that we don't start the
15 dbg
.SetInputFileHandle(open("input_file"), True)
16 opts
= lldb
.SBCommandInterpreterRunOptions()
17 # Launch the command interpreter now.
18 dbg
.RunCommandInterpreter(True, True, opts
, 0, False, False)
19 # Try resizing the terminal which shouldn't crash.
20 dbg
.SetTerminalWidth(47)