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 | |
| 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
| -rw-r--r-- | lldb/test/functionalities/register/TestRegisters.py | 4 | ||||
| -rw-r--r-- | lldb/test/python_api/hello_world/TestHelloWorld.py | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lldb/test/functionalities/register/TestRegisters.py b/lldb/test/functionalities/register/TestRegisters.py index 0580c201f78..c27e468c652 100644 --- a/lldb/test/functionalities/register/TestRegisters.py +++ b/lldb/test/functionalities/register/TestRegisters.py @@ -17,6 +17,10 @@ class RegisterCommandsTestCase(TestBase): TestBase.setUp(self) self.has_teardown = False + def tearDown(self): + self.dbg.GetSelectedTarget().GetProcess().Destroy() + TestBase.tearDown(self) + def test_register_commands(self): """Test commands related to registers, in particular vector registers.""" if not self.getArchitecture() in ['amd64', 'i386', 'x86_64']: 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.""" |

