summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
diff options
context:
space:
mode:
authorIlia K <ki.stfu@gmail.com>2015-03-26 15:43:46 +0000
committerIlia K <ki.stfu@gmail.com>2015-03-26 15:43:46 +0000
commit841e30ae716ac4e91cd938d6434015f86661b166 (patch)
tree2cde66a6c2c225994681566557a7d7fb655d0f85 /lldb/test/python_api
parent5704347c29597ba585fd3a405cdf68a0d7c5fe33 (diff)
downloadbcm5719-llvm-841e30ae716ac4e91cd938d6434015f86661b166.tar.gz
bcm5719-llvm-841e30ae716ac4e91cd938d6434015f86661b166.zip
Fix RegisterCommandsTestCase and HelloWorldTestCase tests which hang on OS X after TestBase.tearDown()
llvm-svn: 233279
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r--lldb/test/python_api/hello_world/TestHelloWorld.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/test/python_api/hello_world/TestHelloWorld.py b/lldb/test/python_api/hello_world/TestHelloWorld.py
index 036e6e895b0..cf24889260d 100644
--- a/lldb/test/python_api/hello_world/TestHelloWorld.py
+++ b/lldb/test/python_api/hello_world/TestHelloWorld.py
@@ -93,6 +93,12 @@ class HelloWorldTestCase(TestBase):
self.line1 = line_number('main.c', '// Set break point at this line.')
self.line2 = line_number('main.c', '// Waiting to be attached...')
+ def tearDown(self):
+ # Destroy process before TestBase.tearDown()
+ self.dbg.GetSelectedTarget().GetProcess().Destroy()
+ # Call super's tearDown().
+ TestBase.tearDown(self)
+
def hello_world_python(self):
"""Create target, breakpoint, launch a process, and then kill it."""
OpenPOWER on IntegriCloud