[Lldb-commits] [lldb] r191398 - Added a simple legend to the unit test 'dots' output, to aid understandability.

Richard Mitton richard at codersnotes.com
Wed Sep 25 13:47:52 PDT 2013


Author: rmitton
Date: Wed Sep 25 15:47:51 2013
New Revision: 191398

URL: http://llvm.org/viewvc/llvm-project?rev=191398&view=rev
Log:
Added a simple legend to the unit test 'dots' output, to aid understandability.

Modified:
    lldb/trunk/test/unittest2/runner.py

Modified: lldb/trunk/test/unittest2/runner.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/unittest2/runner.py?rev=191398&r1=191397&r2=191398&view=diff
==============================================================================
--- lldb/trunk/test/unittest2/runner.py (original)
+++ lldb/trunk/test/unittest2/runner.py Wed Sep 25 15:47:51 2013
@@ -48,6 +48,11 @@ class TextTestResult(result.TestResult):
         self.descriptions = descriptions
         self.progressbar = None
 
+        if self.dots:
+            self.stream.writeln(".=success F=fail E=error s=skipped x=expected-fail u=unexpected-success");
+            self.stream.writeln("");
+            self.stream.flush()
+
     def getDescription(self, test):
         doc_first_line = test.shortDescription()
         if self.descriptions and doc_first_line:





More information about the lldb-commits mailing list