[Lldb-commits] [lldb] r227086 - Also except OSError when terminating a child.

Hafiz Abid Qadeer hafiz_abid at mentor.com
Mon Jan 26 04:03:06 PST 2015


Author: abidh
Date: Mon Jan 26 06:03:05 2015
New Revision: 227086

URL: http://llvm.org/viewvc/llvm-project?rev=227086&view=rev
Log:
Also except OSError when terminating a child.
Ilia K <ki.stfu at gmail.com> sent this patch. He noted that it was possible for
child to be terminated after isAlive call and before we send it quit command.
In this case, sending command to it causes OSError. This patch just adds this
exception to the except list.


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=227086&r1=227085&r2=227086&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Mon Jan 26 06:03:05 2015
@@ -1072,7 +1072,7 @@ 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, pexpect.ExceptionPexpect):
+            except (ValueError, OSError, pexpect.ExceptionPexpect):
                 # child is already terminated
                 pass
             finally:





More information about the lldb-commits mailing list