Two tests were using the interactive convenience variable

lldb.debugger.  They should not be.
<rdar://problem/50210340> 

llvm-svn: 359234
This commit is contained in:
Jason Molenda 2019-04-25 20:03:39 +00:00
parent ceb71e887b
commit 3775794812
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ class Issue11581TestCase(TestBase):
# register r14 is an x86_64 extension let's skip this part of the test
# if we are on a different architecture
if self.getArchitecture() == 'x86_64':
target = lldb.debugger.GetSelectedTarget()
target = self.dbg.GetSelectedTarget()
process = target.GetProcess()
frame = process.GetSelectedThread().GetSelectedFrame()
pointer = frame.FindVariable("r14")

View File

@ -30,11 +30,11 @@ class TestInterruptThreadNames(TestBase):
launch_info = lldb.SBLaunchInfo(None)
error = lldb.SBError()
lldb.debugger.SetAsync(True)
self.dbg.SetAsync(True)
process = target.Launch(launch_info, error)
self.assertTrue(process, PROCESS_IS_VALID)
listener = lldb.debugger.GetListener()
listener = self.dbg.GetListener()
broadcaster = process.GetBroadcaster()
rc = broadcaster.AddListener(listener, lldb.SBProcess.eBroadcastBitStateChanged)
self.assertTrue(rc != 0, "Unable to add listener to process")