From e376ba0331b4fd6eebe31d724345d3a636d75bf2 Mon Sep 17 00:00:00 2001 From: Adrian McCarthy Date: Tue, 15 Dec 2015 23:51:27 +0000 Subject: Propagate socket_error exception from handle_read. Otherwise Ninja crashes. llvm-svn: 255718 --- lldb/packages/Python/lldbsuite/test/dotest_channels.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lldb/packages/Python/lldbsuite') 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): -- cgit v1.2.3