[Lldb-commits] [lldb] r234191 - Ignore IOError from missing child.log.
Chaoren Lin
chaorenl at google.com
Mon Apr 6 11:23:49 PDT 2015
Author: chaoren
Date: Mon Apr 6 13:23:48 2015
New Revision: 234191
URL: http://llvm.org/viewvc/llvm-project?rev=234191&view=rev
Log:
Ignore IOError from missing child.log.
Summary:
TestMiCliSupport (among other TestMi*) fails on Linux with
```
IOError: [Errno 2] No such file or directory: 'child.log'
```
Reviewers: clayborg, ki.stfu
Reviewed By: ki.stfu
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D8843
Modified:
lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py
Modified: lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py?rev=234191&r1=234190&r2=234191&view=diff
==============================================================================
--- lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py (original)
+++ lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py Mon Apr 6 13:23:48 2015
@@ -25,7 +25,10 @@ class MiTestCaseBase(Base):
def tearDown(self):
if self.TraceOn():
print "\n\nContents of %s:" % self.mylog
- print open(self.mylog, "r").read()
+ try:
+ print open(self.mylog, "r").read()
+ except IOError:
+ pass
Base.tearDown(self)
def spawnLldbMi(self, args=None):
More information about the lldb-commits
mailing list