From 8670be04bfada132a0c808c90b02e41713d364fd Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Thu, 15 Jan 2015 17:52:18 +0100 Subject: [PATCH] [Mono.Security]: Test suite - we may not throw IOException as well here. In fact, we should not ever throw ObjectDisposedException, but provide a meaningful IOException. Still working on it. --- mcs/class/System/Test/System.Net.Security/SslStreamTest.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mcs/class/System/Test/System.Net.Security/SslStreamTest.cs b/mcs/class/System/Test/System.Net.Security/SslStreamTest.cs index c9b067ef6ba..39849d5bef9 100644 --- a/mcs/class/System/Test/System.Net.Security/SslStreamTest.cs +++ b/mcs/class/System/Test/System.Net.Security/SslStreamTest.cs @@ -177,7 +177,11 @@ public class SslStreamTest { (a1, a2, a3, a4, a5) => m_clientCert); state.ClientStream.AuthenticateAsClient ("test_host"); state.ClientAuthenticated.Set (); - } catch (ObjectDisposedException) { /* this can happen when closing connection it's irrelevant for the test result*/} + } catch (ObjectDisposedException) { /* this can happen when closing connection it's irrelevant for the test result*/ + } catch (IOException) { + if (!state.ServerIOException) + throw; + } } private void StartServerAndAuthenticate (ClientServerState state) { -- 2.11.4.GIT