Author: kostat
Date: 2007-08-14 12:16:18 -0400 (Tue, 14 Aug 2007)
New Revision: 84092
Modified:
trunk/mcs/class/System/Test/System.Net/ServicePointTest.cs
Log:
TARGET_JVM: ServicePoint.BindIPEndPointDelegate is not supported
Modified: trunk/mcs/class/System/Test/System.Net/ServicePointTest.cs
===================================================================
--- trunk/mcs/class/System/Test/System.Net/ServicePointTest.cs 2007-08-14
16:03:42 UTC (rev 84091)
+++ trunk/mcs/class/System/Test/System.Net/ServicePointTest.cs 2007-08-14
16:16:18 UTC (rev 84092)
@@ -166,26 +166,26 @@
HttpWebRequest req = (HttpWebRequest) WebRequest.Create (uri);
bool called = false;
-
+#if !TARGET_JVM
sp.BindIPEndPointDelegate = delegate {
Assertion.Assert(!called);
called = true;
return null;
};
-
+#endif
req.GetResponse ().Close ();
Assertion.Assert (called);
req = (HttpWebRequest) WebRequest.Create (uri);
called = false;
-
+#if !TARGET_JVM
sp.BindIPEndPointDelegate = delegate(ServicePoint point,
IPEndPoint remote, int times) {
Assertion.Assert(times < 5);
called = true;
return new IPEndPoint(IPAddress.Parse("0.0.0.0"), 12345
+ times);
};
-
+#endif
req.GetResponse ().Close ();
Assertion.Assert(called);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches