diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-11-09 23:56:14 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-11-09 23:56:14 +0000 |
commit | cc78b0b67fc3f49952f2963b4961a1d5b69a60ba (patch) | |
tree | 3dad03d3ad83ba8b2177f9849b57c8913a0963cb | |
parent | 7a34528d681fa8185c2a216bb8278af38307b036 (diff) | |
download | bcm5719-llvm-cc78b0b67fc3f49952f2963b4961a1d5b69a60ba.tar.gz bcm5719-llvm-cc78b0b67fc3f49952f2963b4961a1d5b69a60ba.zip |
Add more comments on LLDBTestResult class.
llvm-svn: 118655
-rwxr-xr-x | lldb/test/dotest.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index 1c1f3253cf9..bb32146dc36 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -670,10 +670,14 @@ for ia in range(len(archs) if iterArchs else 1): % (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 @@ for ia in range(len(archs) if iterArchs else 1): if method: method() + # Invoke the test runner. result = unittest2.TextTestRunner(stream=sys.stderr, verbosity=verbose, resultclass=LLDBTestResult).run(suite) |