[Lldb-commits] [lldb] r228877 - Except only EIO errors of OSError exception in Base.deletePexpectChild() in lldbtest.py after r227086
Ilia K
ki.stfu at gmail.com
Wed Feb 11 13:41:59 PST 2015
Author: ki.stfu
Date: Wed Feb 11 15:41:58 2015
New Revision: 228877
URL: http://llvm.org/viewvc/llvm-project?rev=228877&view=rev
Log:
Except only EIO errors of OSError exception in Base.deletePexpectChild() in lldbtest.py after r227086
Modified:
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=228877&r1=228876&r2=228877&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Wed Feb 11 15:41:58 2015
@@ -1147,7 +1147,14 @@ class Base(unittest2.TestCase):
self.child.sendline('settings set interpreter.prompt-on-quit false')
self.child.sendline('quit')
self.child.expect(pexpect.EOF)
- except (ValueError, OSError, pexpect.ExceptionPexpect):
+ except (ValueError, pexpect.ExceptionPexpect):
+ # child is already terminated
+ pass
+ except OSError as exception:
+ import errno
+ if exception.errno != errno.EIO:
+ # unexpected error
+ raise
# child is already terminated
pass
finally:
More information about the lldb-commits
mailing list