diff options
| author | Ilia K <ki.stfu@gmail.com> | 2015-03-26 15:43:46 +0000 |
|---|---|---|
| committer | Ilia K <ki.stfu@gmail.com> | 2015-03-26 15:43:46 +0000 |
| commit | 841e30ae716ac4e91cd938d6434015f86661b166 (patch) | |
| tree | 2cde66a6c2c225994681566557a7d7fb655d0f85 /lldb/test/python_api/hello_world | |
| parent | 5704347c29597ba585fd3a405cdf68a0d7c5fe33 (diff) | |
| download | bcm5719-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/hello_world')
| -rw-r--r-- | lldb/test/python_api/hello_world/TestHelloWorld.py | 6 |
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.""" |

