summaryrefslogtreecommitdiffstats
path: root/lldb/test/objc-dynamic-value/TestObjCDynamicValue.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-06-15 22:14:12 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-06-15 22:14:12 +0000
commit5a0bee7c5f06333b68740fce3311b1a164ef93ea (patch)
treea9d71b63ed6ea0f4ace535b54d30c2daa8762f2c /lldb/test/objc-dynamic-value/TestObjCDynamicValue.py
parentc20b1393e18eb88e150b013671d0c493ac2091b7 (diff)
downloadbcm5719-llvm-5a0bee7c5f06333b68740fce3311b1a164ef93ea.tar.gz
bcm5719-llvm-5a0bee7c5f06333b68740fce3311b1a164ef93ea.zip
The extra burden for the Python API test case to assign its process object to self.process
in order to have its process cleaned up (terminated) upon tearDown is gone for good. Let's simplify a bunch of Python API test cases. llvm-svn: 133097
Diffstat (limited to 'lldb/test/objc-dynamic-value/TestObjCDynamicValue.py')
-rw-r--r--lldb/test/objc-dynamic-value/TestObjCDynamicValue.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/test/objc-dynamic-value/TestObjCDynamicValue.py b/lldb/test/objc-dynamic-value/TestObjCDynamicValue.py
index 5e96b4e1ba3..37d9a06e818 100644
--- a/lldb/test/objc-dynamic-value/TestObjCDynamicValue.py
+++ b/lldb/test/objc-dynamic-value/TestObjCDynamicValue.py
@@ -67,12 +67,12 @@ class ObjCDynamicValueTestCase(TestBase):
VALID_BREAKPOINT)
# Now launch the process, and do not stop at the entry point.
- self.process = target.LaunchSimple (None, None, os.getcwd())
+ process = target.LaunchSimple (None, None, os.getcwd())
- self.assertTrue(self.process.GetState() == lldb.eStateStopped,
+ self.assertTrue(process.GetState() == lldb.eStateStopped,
PROCESS_STOPPED)
- threads = lldbutil.get_threads_stopped_at_breakpoint (self.process, main_before_setProperty_bkpt)
+ threads = lldbutil.get_threads_stopped_at_breakpoint (process, main_before_setProperty_bkpt)
self.assertTrue (len(threads) == 1)
thread = threads[0]
@@ -99,7 +99,7 @@ class ObjCDynamicValueTestCase(TestBase):
thread.StepInto()
- threads = lldbutil.get_stopped_threads (self.process, lldb.eStopReasonPlanComplete)
+ threads = lldbutil.get_stopped_threads (process, lldb.eStopReasonPlanComplete)
self.assertTrue (len(threads) == 1)
line_entry = threads[0].GetFrameAtIndex(0).GetLineEntry()
self.assertTrue (line_entry.GetLine() == self.set_property_line)
@@ -107,7 +107,7 @@ class ObjCDynamicValueTestCase(TestBase):
# Okay, back to the main business. Continue to the handle_SourceBase and make sure we get the correct dynamic value.
- threads = lldbutil.continue_to_breakpoint (self.process, handle_SourceBase_bkpt)
+ threads = lldbutil.continue_to_breakpoint (process, handle_SourceBase_bkpt)
self.assertTrue (len(threads) == 1)
thread = threads[0]
@@ -142,7 +142,7 @@ class ObjCDynamicValueTestCase(TestBase):
# This one looks exactly the same, but in fact this is an "un-KVO'ed" version of SourceBase, so
# its isa pointer points to SourceBase not NSKVOSourceBase or whatever...
- threads = lldbutil.continue_to_breakpoint (self.process, handle_SourceBase_bkpt)
+ threads = lldbutil.continue_to_breakpoint (process, handle_SourceBase_bkpt)
self.assertTrue (len(threads) == 1)
thread = threads[0]
OpenPOWER on IntegriCloud