[Lldb-commits] [lldb] r106910 - /lldb/trunk/test/tester.py
Johnny Chen
johnny.chen at apple.com
Fri Jun 25 16:22:48 PDT 2010
Author: johnny
Date: Fri Jun 25 18:22:48 2010
New Revision: 106910
URL: http://llvm.org/viewvc/llvm-project?rev=106910&view=rev
Log:
Use lldb.SBDebugger.Create() factory method to create an instance first.
Modified:
lldb/trunk/test/tester.py
Modified: lldb/trunk/test/tester.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tester.py?rev=106910&r1=106909&r2=106910&view=diff
==============================================================================
--- lldb/trunk/test/tester.py (original)
+++ lldb/trunk/test/tester.py Fri Jun 25 18:22:48 2010
@@ -82,8 +82,9 @@
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 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)
More information about the lldb-commits
mailing list