Skip to content
Snippets Groups Projects
Commit 324355b9 authored by Johnny Chen's avatar Johnny Chen
Browse files

Added doc strings to the array_types test cases. And terminate the current

process being debugged in the TestBase.tearDown() instead of letting it continue
and finish.

llvm-svn: 112556
parent 3a1d87a7
No related branches found
No related tags found
No related merge requests found
......@@ -11,19 +11,23 @@ class TestArrayTypes(TestBase):
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
def test_with_dsym_and_run_command(self):
"""Test 'variable list var_name' on some variables with array types."""
self.buildDsym()
self.array_types()
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
def test_with_dsym_and_python_api(self):
"""Use Python APIs to inspect variables with array types."""
self.buildDsym()
self.array_types_python()
def test_with_dwarf_and_run_command(self):
"""Test 'variable list var_name' on some variables with array types."""
self.buildDwarf()
self.array_types()
def test_with_dwarf_and_python_api(self):
"""Use Python APIs to inspect variables with array types."""
self.buildDwarf()
self.array_types_python()
......@@ -134,6 +138,10 @@ class TestArrayTypes(TestBase):
self.assertTrue(long(child5.GetValue(frame)) == 6,
"long_6[5] == 6")
# Now kill the process, and we are done.
rc = target.GetProcess().Kill()
self.assertTrue(rc.Success())
if __name__ == '__main__':
import atexit
......
......@@ -270,9 +270,9 @@ class TestBase(unittest2.TestCase):
self.res = lldb.SBCommandReturnObject()
def tearDown(self):
# Finish the inferior process, if it was "run" previously.
# Terminate the current process being debugged.
if self.runStarted:
self.ci.HandleCommand("continue", self.res)
self.ci.HandleCommand("process kill", self.res)
del self.dbg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment