From 841e30ae716ac4e91cd938d6434015f86661b166 Mon Sep 17 00:00:00 2001 From: Ilia K Date: Thu, 26 Mar 2015 15:43:46 +0000 Subject: Fix RegisterCommandsTestCase and HelloWorldTestCase tests which hang on OS X after TestBase.tearDown() llvm-svn: 233279 --- lldb/test/python_api/hello_world/TestHelloWorld.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lldb/test/python_api') 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.""" -- cgit v1.2.3