Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / iohandler / resize / TestIOHandlerResizeNoEditline.py
blob3c07554f6cafd718ea4c720951d4a63bfbc94468
1 import lldb
2 from lldbsuite.test.decorators import *
3 from lldbsuite.test.lldbtest import *
4 from lldbsuite.test import lldbutil
7 class TestCase(TestBase):
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)