[Lldb-commits] [PATCH] Ignore IOError from missing child.log.

Chaoren Lin chaorenl at google.com
Mon Apr 6 11:27:04 PDT 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8843

Files:
  lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py

Index: lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py
===================================================================
--- lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py
+++ lldb/trunk/test/tools/lldb-mi/lldbmi_testcase.py
@@ -25,7 +25,10 @@
     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):

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8843.23286.patch
Type: text/x-patch
Size: 595 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150406/593be2c1/attachment.bin>


More information about the lldb-commits mailing list