summaryrefslogtreecommitdiffstats
path: root/lldb/test/persistent_variables/TestPersistentVariables.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-08-16 21:28:10 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-08-16 21:28:10 +0000
commit6ca006c7c13da67cd3aa19c2067e6990ac97c8d8 (patch)
tree77f90da83646be67cd1fce51ba3622ad60587829 /lldb/test/persistent_variables/TestPersistentVariables.py
parentdf239670d403fb18a338f1a47ad1326e4a3b9a73 (diff)
downloadbcm5719-llvm-6ca006c7c13da67cd3aa19c2067e6990ac97c8d8.tar.gz
bcm5719-llvm-6ca006c7c13da67cd3aa19c2067e6990ac97c8d8.zip
Factored the "continue" command execution of the inferior process as part of the
cleanup before finish into the test fixture in lldbtest.TestBase.tearDown(). Derivatives of TestBase is responsible for setting self.runStarted to True if an inferior process has been started. llvm-svn: 111188
Diffstat (limited to 'lldb/test/persistent_variables/TestPersistentVariables.py')
-rw-r--r--lldb/test/persistent_variables/TestPersistentVariables.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/test/persistent_variables/TestPersistentVariables.py b/lldb/test/persistent_variables/TestPersistentVariables.py
index c09c8166f78..8aff13ad452 100644
--- a/lldb/test/persistent_variables/TestPersistentVariables.py
+++ b/lldb/test/persistent_variables/TestPersistentVariables.py
@@ -22,6 +22,7 @@ class TestPersistentVariables(TestBase):
self.assertTrue(res.Succeeded())
self.ci.HandleCommand("run", res)
+ self.runStarted = True
self.assertTrue(res.Succeeded(), RUN_STOPPED)
self.ci.HandleCommand("expr int $i = 5; $i + 1", res)
@@ -48,6 +49,7 @@ class TestPersistentVariables(TestBase):
self.ci.HandleCommand("continue", res)
self.ci.HandleCommand("quit", res)
+ self.runStarted = False
if __name__ == '__main__':
OpenPOWER on IntegriCloud