For the time being, let's bracket the test runner within the

lldb.SBDebugger.Initialize()/Terminate() pair.

Change TestHelp.py to use synchronous debugging, which is easier to work with.

llvm-svn: 107198
This commit is contained in:
Johnny Chen 2010-06-29 19:44:16 +00:00
parent c048c52734
commit 4657be6e63
2 changed files with 11 additions and 1 deletions

View File

@ -129,4 +129,12 @@ for testdir in testdirs:
os.path.walk(testdir, visit, 'Test')
# Now that we have loaded all the test cases, run the whole test suite.
# For the time being, let's bracket the test runner within the
# lldb.SBDebugger.Initialize()/Terminate() pair.
import lldb
lldb.SBDebugger.Initialize()
unittest.TextTestRunner(verbosity=verbose).run(suite)
lldb.SBDebugger.Terminate()

View File

@ -7,7 +7,7 @@ class TestHelpCommand(unittest.TestCase):
def setUp(self):
self.debugger = lldb.SBDebugger.Create()
self.debugger.SetAsync(True)
self.debugger.SetAsync(False)
self.ci = self.debugger.GetCommandInterpreter()
if not self.ci:
raise Exception('Could not get the command interpreter')
@ -37,4 +37,6 @@ class TestHelpCommand(unittest.TestCase):
if __name__ == '__main__':
lldb.SBDebugger.Initialize()
unittest.main()
lldb.SBDebugger.Terminate()