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