diff options
author | Jason Molenda <jmolenda@apple.com> | 2019-04-25 20:03:39 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2019-04-25 20:03:39 +0000 |
commit | 3775794812e582769e2ed1b53c00650a6b21387c (patch) | |
tree | 728b5f9d46a0cffc480391309f875ba038916e75 /lldb/packages/Python/lldbsuite/test | |
parent | ceb71e887b8ed25594740ab7ac9419baf1e3c1e0 (diff) | |
download | bcm5719-llvm-3775794812e582769e2ed1b53c00650a6b21387c.tar.gz bcm5719-llvm-3775794812e582769e2ed1b53c00650a6b21387c.zip |
Two tests were using the interactive convenience variable
lldb.debugger. They should not be.
<rdar://problem/50210340>
llvm-svn: 359234
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/expression_command/issue_11588/Test11588.py | 2 | ||||
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/macosx/thread-names/TestInterruptThreadNames.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/expression_command/issue_11588/Test11588.py b/lldb/packages/Python/lldbsuite/test/expression_command/issue_11588/Test11588.py index 09b0eaaa2b1..2efe2df9550 100644 --- a/lldb/packages/Python/lldbsuite/test/expression_command/issue_11588/Test11588.py +++ b/lldb/packages/Python/lldbsuite/test/expression_command/issue_11588/Test11588.py @@ -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") diff --git a/lldb/packages/Python/lldbsuite/test/macosx/thread-names/TestInterruptThreadNames.py b/lldb/packages/Python/lldbsuite/test/macosx/thread-names/TestInterruptThreadNames.py index 515ab3f2bbd..c1ab00eee30 100644 --- a/lldb/packages/Python/lldbsuite/test/macosx/thread-names/TestInterruptThreadNames.py +++ b/lldb/packages/Python/lldbsuite/test/macosx/thread-names/TestInterruptThreadNames.py @@ -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") |