1import lldb 2from lldbsuite.test.decorators import * 3from lldbsuite.test.lldbtest import * 4from lldbsuite.test import lldbutil 5 6class TestCase(TestBase): 7 8 @no_debug_info_test 9 @skipIfWindows 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 14 # editline interface. 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) 21