diff options
author | Adrian McCarthy <amccarth@google.com> | 2015-12-15 23:51:27 +0000 |
---|---|---|
committer | Adrian McCarthy <amccarth@google.com> | 2015-12-15 23:51:27 +0000 |
commit | e376ba0331b4fd6eebe31d724345d3a636d75bf2 (patch) | |
tree | 381435f9f372ec21a5a91e25549c4ffede7a3b5f /lldb/packages/Python/lldbsuite/test/dotest_channels.py | |
parent | 04d4964462fa6bad91c46c5176cb6ca61c251916 (diff) | |
download | bcm5719-llvm-e376ba0331b4fd6eebe31d724345d3a636d75bf2.tar.gz bcm5719-llvm-e376ba0331b4fd6eebe31d724345d3a636d75bf2.zip |
Propagate socket_error exception from handle_read. Otherwise Ninja crashes.
llvm-svn: 255718
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest_channels.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest_channels.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest_channels.py b/lldb/packages/Python/lldbsuite/test/dotest_channels.py index 7c182291871..d2faf10c892 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest_channels.py +++ b/lldb/packages/Python/lldbsuite/test/dotest_channels.py @@ -140,13 +140,12 @@ class UnpicklingForwardingReaderChannel(asyncore.dispatcher): print( "\nINFO: received socket error when reading data " "from test inferior:\n{}".format(socket_error)) - # Should be good to return here. - return + raise except Exception as general_exception: print( "\nERROR: received non-socket error when reading data " "from the test inferior:\n{}".format(general_exception)) - return + raise # Consume the message content. while data and (len(data) > 0): |