[Lldb-commits] [lldb] r118655 - /lldb/trunk/test/dotest.py

Johnny Chen johnny.chen at apple.com
Tue Nov 9 15:56:14 PST 2010


Author: johnny
Date: Tue Nov  9 17:56:14 2010
New Revision: 118655

URL: http://llvm.org/viewvc/llvm-project?rev=118655&view=rev
Log:
Add more comments on LLDBTestResult class.

Modified:
    lldb/trunk/test/dotest.py

Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=118655&r1=118654&r2=118655&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Tue Nov  9 17:56:14 2010
@@ -670,10 +670,14 @@
                          % (suite.countTestCases(),
                             suite.countTestCases() != 1 and "s" or ""))
 
-        # Invoke the test runner.
         class LLDBTestResult(unittest2.TextTestResult):
             """
-            Enforce a singleton pattern to allow inspection of test progress.
+            Enforce a singleton pattern to allow introspection of test progress.
+
+            Overwrite addError(), addFailure(), and addExpectedFailure() methods
+            to enable each test instance to track its failure/error status.  It
+            is used in the LLDB test framework to emit detailed trace messages
+            to a log file for easier human inspection of test failres/errors.
             """
             __singleton__ = None
 
@@ -709,6 +713,7 @@
                 if method:
                     method()
 
+        # Invoke the test runner.
         result = unittest2.TextTestRunner(stream=sys.stderr, verbosity=verbose,
                                           resultclass=LLDBTestResult).run(suite)
         





More information about the lldb-commits mailing list