[Lldb-commits] [lldb] r187450 - Fix problematic override _exc_info_to_string
Daniel Malea
daniel.malea at intel.com
Tue Jul 30 14:28:33 PDT 2013
Author: dmalea
Date: Tue Jul 30 16:28:32 2013
New Revision: 187450
URL: http://llvm.org/viewvc/llvm-project?rev=187450&view=rev
Log:
Fix problematic override _exc_info_to_string
- pass through to base-class implementation when raised exception is not from an LLDBTest
- should make the test suite errors a little easier to root-cause
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=187450&r1=187449&r2=187450&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Tue Jul 30 16:28:32 2013
@@ -1427,10 +1427,12 @@ for ia in range(len(archs) if iterArchs
def _exc_info_to_string(self, err, test):
"""Overrides superclass TestResult's method in order to append
our test config info string to the exception info string."""
- modified_exc_string = '%sConfig=%s-%s' % (super(LLDBTestResult, self)._exc_info_to_string(err, test),
- test.getArchitecture(),
- test.getCompiler())
- return modified_exc_string
+ if hasattr(test, "getArchitecture") and hasattr(test, "getCompiler"):
+ return '%sConfig=%s-%s' % (super(LLDBTestResult, self)._exc_info_to_string(err, test),
+ test.getArchitecture(),
+ test.getCompiler())
+ else:
+ return super(LLDBTestResult, self)._exc_info_to_string(err, test)
def getDescription(self, test):
doc_first_line = test.shortDescription()
More information about the lldb-commits
mailing list