forked from OSchip/llvm-project
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:
parent
ceb71e887b
commit
3775794812
|
@ -48,7 +48,7 @@ class Issue11581TestCase(TestBase):
|
||||||
# register r14 is an x86_64 extension let's skip this part of the test
|
# register r14 is an x86_64 extension let's skip this part of the test
|
||||||
# if we are on a different architecture
|
# if we are on a different architecture
|
||||||
if self.getArchitecture() == 'x86_64':
|
if self.getArchitecture() == 'x86_64':
|
||||||
target = lldb.debugger.GetSelectedTarget()
|
target = self.dbg.GetSelectedTarget()
|
||||||
process = target.GetProcess()
|
process = target.GetProcess()
|
||||||
frame = process.GetSelectedThread().GetSelectedFrame()
|
frame = process.GetSelectedThread().GetSelectedFrame()
|
||||||
pointer = frame.FindVariable("r14")
|
pointer = frame.FindVariable("r14")
|
||||||
|
|
|
@ -30,11 +30,11 @@ class TestInterruptThreadNames(TestBase):
|
||||||
|
|
||||||
launch_info = lldb.SBLaunchInfo(None)
|
launch_info = lldb.SBLaunchInfo(None)
|
||||||
error = lldb.SBError()
|
error = lldb.SBError()
|
||||||
lldb.debugger.SetAsync(True)
|
self.dbg.SetAsync(True)
|
||||||
process = target.Launch(launch_info, error)
|
process = target.Launch(launch_info, error)
|
||||||
self.assertTrue(process, PROCESS_IS_VALID)
|
self.assertTrue(process, PROCESS_IS_VALID)
|
||||||
|
|
||||||
listener = lldb.debugger.GetListener()
|
listener = self.dbg.GetListener()
|
||||||
broadcaster = process.GetBroadcaster()
|
broadcaster = process.GetBroadcaster()
|
||||||
rc = broadcaster.AddListener(listener, lldb.SBProcess.eBroadcastBitStateChanged)
|
rc = broadcaster.AddListener(listener, lldb.SBProcess.eBroadcastBitStateChanged)
|
||||||
self.assertTrue(rc != 0, "Unable to add listener to process")
|
self.assertTrue(rc != 0, "Unable to add listener to process")
|
||||||
|
|
Loading…
Reference in New Issue