[lldb] Fix a couple of remote llgs tests

init_llgs_test no longer takes an argument
but these two were not updated.

Also fix some mistakes in TestAutoInstallMainExecutable
to get it passing again.

Reviewed By: JDevlieghere, labath

Differential Revision: https://reviews.llvm.org/D91612
This commit is contained in:
David Spickett 2020-11-17 11:56:45 +00:00
parent f33118c61c
commit 50f12ade2d
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ class TestAutoInstallMainExecutable(gdbremote_testcase.GdbRemoteTestCaseBase):
@expectedFailureAll(hostoslist=["windows"], triple='.*-android')
def test_target_auto_install_main_executable(self):
self.build()
self.init_llgs_test(False)
self.init_llgs_test()
# Manually install the modified binary.
working_dir = lldb.remote_platform.GetWorkingDirectory()
@ -77,10 +77,10 @@ class TestAutoInstallMainExecutable(gdbremote_testcase.GdbRemoteTestCaseBase):
(os.path.join(working_dir,dest.GetFilename()),
self.getBuildArtifact("a.out")))
target = new_debugger.GetSelectedTarget()
target = self.dbg.GetSelectedTarget()
breakpoint = target.BreakpointCreateByName("main")
launch_info = taget.GetLaunchInfo()
launch_info = target.GetLaunchInfo()
error = lldb.SBError()
process = target.Launch(launch_info, error)
self.assertTrue(process, PROCESS_IS_VALID)

View File

@ -16,7 +16,7 @@ class TestPlatformProcessConnect(gdbremote_testcase.GdbRemoteTestCaseBase):
@expectedFailureAll(hostoslist=["windows"], triple='.*-android')
def test_platform_process_connect(self):
self.build()
self.init_llgs_test(False)
self.init_llgs_test()
working_dir = lldb.remote_platform.GetWorkingDirectory()
src = lldb.SBFileSpec(self.getBuildArtifact("a.out"))