From f94c8c2bf94b81788f25b941ff39a30dec92e673 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 25 Jun 2010 23:22:48 +0000 Subject: [PATCH] Use lldb.SBDebugger.Create() factory method to create an instance first. llvm-svn: 106910 --- lldb/test/tester.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lldb/test/tester.py b/lldb/test/tester.py index 31ec450fbbec..5d2495a024dd 100755 --- a/lldb/test/tester.py +++ b/lldb/test/tester.py @@ -82,8 +82,9 @@ import lldb class LLDBTestCase(unittest.TestCase): def setUp(self): - lldb.SBDebugger.SetAsync(True) - self.m_commandInterpreter = lldb.SBDebugger.GetCommandInterpreter() + debugger = lldb.SBDebugger.Create() + debugger.SetAsync(True) + self.m_commandInterpreter = debugger.GetCommandInterpreter() if not self.m_commandInterpreter: print "Couldn't get the command interpreter" sys.exit(-1) @@ -101,7 +102,7 @@ class LLDBTestCase(unittest.TestCase): class SanityCheckTestCase(LLDBTestCase): def runTest(self): ret = self.runCommand("show arch", "show-arch") - print ret + #print ret suite = unittest.TestLoader().loadTestsFromTestCase(SanityCheckTestCase) unittest.TextTestRunner(verbosity=2).run(suite)