diff options
| author | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2015-01-26 12:03:05 +0000 | 
|---|---|---|
| committer | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2015-01-26 12:03:05 +0000 | 
| commit | a73d1ce74fe0cdd6776754b00ad6761234a01ca9 (patch) | |
| tree | 8bf2c0207646c2bcebf249ce74951eaae92803c8 | |
| parent | 429edc1780184502b681f7ffa31e20ef8fd8927b (diff) | |
| download | bcm5719-llvm-a73d1ce74fe0cdd6776754b00ad6761234a01ca9.tar.gz bcm5719-llvm-a73d1ce74fe0cdd6776754b00ad6761234a01ca9.zip  | |
Also except OSError when terminating a child.
Ilia K <ki.stfu@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.
llvm-svn: 227086
| -rw-r--r-- | lldb/test/lldbtest.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index c08fc8b4f52..9c96018eb01 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -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:  | 

