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 <[email protected]> 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:


_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to