Author: nickd
Date: 2005-03-06 08:47:13 -0500 (Sun, 06 Mar 2005)
New Revision: 41482

Modified:
   trunk/mcs/class/System/Test/System.Net.Sockets/ChangeLog
   trunk/mcs/class/System/Test/System.Net.Sockets/TcpClientTest.cs
   trunk/mcs/class/System/Test/System.Net.Sockets/TcpListenerTest.cs
Log:
2005-03-06  Nick Drochak  <[EMAIL PROTECTED]>

        * TcpClientTest.cs: Choose a different port so test will pass on MS.NET
        * TcpListenerTest.cs: Ignore test that doesn't play well on MS.NET

Modified: trunk/mcs/class/System/Test/System.Net.Sockets/ChangeLog
===================================================================
--- trunk/mcs/class/System/Test/System.Net.Sockets/ChangeLog    2005-03-06 
12:27:10 UTC (rev 41481)
+++ trunk/mcs/class/System/Test/System.Net.Sockets/ChangeLog    2005-03-06 
13:47:13 UTC (rev 41482)
@@ -1,3 +1,8 @@
+2005-03-06  Nick Drochak  <[EMAIL PROTECTED]>
+
+       * TcpClientTest.cs: Choose a different port so test will pass on MS.NET
+       * TcpListenerTest.cs: Ignore test that doesn't play well on MS.NET
+
 2005-02-23  Dick Porter  <[EMAIL PROTECTED]>
 
        * UdpClientTest.cs: Added, with UdpClientBroadcastTest from Chris

Modified: trunk/mcs/class/System/Test/System.Net.Sockets/TcpClientTest.cs
===================================================================
--- trunk/mcs/class/System/Test/System.Net.Sockets/TcpClientTest.cs     
2005-03-06 12:27:10 UTC (rev 41481)
+++ trunk/mcs/class/System/Test/System.Net.Sockets/TcpClientTest.cs     
2005-03-06 13:47:13 UTC (rev 41482)
@@ -32,12 +32,12 @@
                        Socket lSock = new Socket(AddressFamily.InterNetwork,
                                SocketType.Stream, ProtocolType.Tcp);
                        
-                       lSock.Bind(new IPEndPoint(IPAddress.Any, 1234));
+                       lSock.Bind(new IPEndPoint(IPAddress.Any, 8765));
                        lSock.Listen(-1);
 
 
                        // connect to it with a TcpClient
-                       TcpClient outClient = new TcpClient("localhost", 1234);
+                       TcpClient outClient = new TcpClient("localhost", 8765);
                        Socket inSock = lSock.Accept();
 
                        

Modified: trunk/mcs/class/System/Test/System.Net.Sockets/TcpListenerTest.cs
===================================================================
--- trunk/mcs/class/System/Test/System.Net.Sockets/TcpListenerTest.cs   
2005-03-06 12:27:10 UTC (rev 41481)
+++ trunk/mcs/class/System/Test/System.Net.Sockets/TcpListenerTest.cs   
2005-03-06 13:47:13 UTC (rev 41482)
@@ -21,10 +21,11 @@
        public class TcpListenerTest : Assertion
        {
                [Test]
+               [Category("NotDotNet")]
                public void TcpListener ()
                {
                        // listen with a new listener (IPv4 is the default)
-                       TcpListener inListener = new TcpListener (1234);
+                       TcpListener inListener = new TcpListener (8766);
                        inListener.Start();
                        
 
@@ -37,8 +38,7 @@
                                        /// Only keep IPv4 addresses, our 
Server is in IPv4 only mode.
                                        outSock = new Socket 
(address.AddressFamily, SocketType.Stream,
                                                ProtocolType.IP);
-                                       IPEndPoint remote = new IPEndPoint 
(address, 1234);
-                                       outSock.Connect (remote);
+                                       IPEndPoint remote = new IPEndPoint 
(address, 8766);
                                        break;
                                }
                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to