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