[lldb][gui] move TestGuiBasicDebug.py to lldb/test and update it

Between the time it was created and it was pushed upstream,
99451b4453 has moved the existing
gui gui tests to lldb/test, so move this one too.
And update it to contain TestGuiBasic.py changes since the time
when it was based on that test.

Differential Revision: https://reviews.llvm.org/D85106
This commit is contained in:
Luboš Luňák 2020-08-03 07:09:03 +02:00
parent d6868d9ca1
commit c7be982c83
4 changed files with 8 additions and 0 deletions

View File

@ -11,7 +11,11 @@ class TestGuiBasicDebugCommandTest(PExpectTest):
mydir = TestBase.compute_mydir(__file__)
# PExpect uses many timeouts internally and doesn't play well
# under ASAN on a loaded machine..
@skipIfAsan
@skipIfCursesSupportMissing
@skipIfRemote # "run" command will not work correctly for remote debug
def test_gui(self):
self.build()
@ -39,4 +43,8 @@ class TestGuiBasicDebugCommandTest(PExpectTest):
self.child.send("n") # step over
self.child.expect("return 0;[^\r\n]+<<< Thread 1: step over")
# Press escape to quit the gui
self.child.send(escape_key)
self.expect_prompt()
self.quit()