[Lldb-commits] [lldb] r107198 - in /lldb/trunk/test: dotest.py help/TestHelp.py

Johnny Chen johnny.chen at apple.com
Tue Jun 29 12:44:17 PDT 2010


Author: johnny
Date: Tue Jun 29 14:44:16 2010
New Revision: 107198

URL: http://llvm.org/viewvc/llvm-project?rev=107198&view=rev
Log:
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.

Modified:
    lldb/trunk/test/dotest.py
    lldb/trunk/test/help/TestHelp.py

Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=107198&r1=107197&r2=107198&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Tue Jun 29 14:44:16 2010
@@ -129,4 +129,12 @@
     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()

Modified: lldb/trunk/test/help/TestHelp.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/help/TestHelp.py?rev=107198&r1=107197&r2=107198&view=diff
==============================================================================
--- lldb/trunk/test/help/TestHelp.py (original)
+++ lldb/trunk/test/help/TestHelp.py Tue Jun 29 14:44:16 2010
@@ -7,7 +7,7 @@
 
     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 @@
 
 
 if __name__ == '__main__':
+    lldb.SBDebugger.Initialize()
     unittest.main()
+    lldb.SBDebugger.Terminate()





More information about the lldb-commits mailing list