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

Chaoren Lin chaorenl at google.com
Mon Apr 6 10:06:21 PDT 2015


Hi clayborg, ki.stfu,

TestMiCliSupport (among other TestMi*) fails on Linux with

```
IOError: [Errno 2] No such file or directory: 'child.log'
```

http://reviews.llvm.org/D8843

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

Index: test/tools/lldb-mi/lldbmi_testcase.py
===================================================================
--- test/tools/lldb-mi/lldbmi_testcase.py
+++ 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.23279.patch
Type: text/x-patch
Size: 562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150406/e9fb3961/attachment.bin>


More information about the lldb-commits mailing list