[Lldb-commits] [lldb] r175229 - Daniel Malea caught an issue where calling dotest.py with an invalid directory would cause the progressbar init code to raise an exception
Enrico Granata
egranata at apple.com
Thu Feb 14 16:32:05 PST 2013
Author: enrico
Date: Thu Feb 14 18:32:05 2013
New Revision: 175229
URL: http://llvm.org/viewvc/llvm-project?rev=175229&view=rev
Log:
Daniel Malea caught an issue where calling dotest.py with an invalid directory would cause the progressbar init code to raise an exception
This commit fixes it
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=175229&r1=175228&r2=175229&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Thu Feb 14 18:32:05 2013
@@ -1342,8 +1342,12 @@ for ia in range(len(archs) if iterArchs
# This counts from 1 .. suite.countTestCases().
self.counter = 0
(width, height) = LLDBTestResult.getTerminalSize()
+ self.progressbar = None
if width > 10:
- self.progressbar = progress.ProgressWithEvents(stdout=self.stream,start=0,end=suite.countTestCases(),width=width-10)
+ try:
+ self.progressbar = progress.ProgressWithEvents(stdout=self.stream,start=0,end=suite.countTestCases(),width=width-10)
+ except:
+ self.progressbar = None
def _exc_info_to_string(self, err, test):
"""Overrides superclass TestResult's method in order to append
More information about the lldb-commits
mailing list