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 @skipIfReproducer 12 @skipIfWindows 13 def test_resize_no_editline(self): 14 """ Tests terminal resizing if the editline isn't used. """ 15 dbg = lldb.SBDebugger.Create(False) 16 # Set the input handle to some stream so that we don't start the 17 # editline interface. 18 dbg.SetInputFileHandle(open("input_file"), True) 19 opts = lldb.SBCommandInterpreterRunOptions() 20 # Launch the command interpreter now. 21 dbg.RunCommandInterpreter(True, True, opts, 0, False, False) 22 # Try resizing the terminal which shouldn't crash. 23 dbg.SetTerminalWidth(47) 24