From 47448c2162f46b72a9c853dbe8375dc5071f059b Mon Sep 17 00:00:00 2001 From: Ilia K Date: Wed, 11 Feb 2015 21:41:58 +0000 Subject: [PATCH] Except only EIO errors of OSError exception in Base.deletePexpectChild() in lldbtest.py after r227086 llvm-svn: 228877 --- lldb/test/lldbtest.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 0f0444f..3b6a246 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -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: -- 2.7.4