[Lldb-commits] [PATCH] D100243: [LLDB][GUI] Expand selected thread tree item by default
walter erquinigo via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri May 21 15:48:01 PDT 2021
wallace added inline comments.
Herald added a reviewer: teemperor.
================
Comment at: lldb/test/API/commands/gui/expand-threads-tree/TestGuiExpandThreadsTree.py:38
+ # Exit GUI.
+ self.child.send(escape_key)
+ self.expect_prompt()
----------------
create a method self.exit_gui to dedup some code, as you'll end up doing a lot of them as you write your tests
def exit_gui(self):
self.child.send(chr(27).encode())
self.expect_prompt()
you can also create a method start_gui
def start_gui(self):
self.child.sendline("gui")
self.child.send(chr(27).encode())
you could also later create a base class lldbgui_testcase similar to lldbvscode_testcase, where you can put all needed common code
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D100243/new/
https://reviews.llvm.org/D100243
More information about the lldb-commits
mailing list