Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin.baulig@gmail.com>2012-06-27 04:08:03 +0400
committerMartin Baulig <martin.baulig@gmail.com>2012-06-27 04:10:00 +0400
commitcad82120b6e39be862cdc43ab1a7407ccdc58831 (patch)
tree0fc41f52e506d350aafcae4c6cd4a3b20a61c073
parentc14e6390bd226a8f8d29e5acd97f87b81d4f454c (diff)
Fix UdpClientTest.Constructor6(): UDP port 0 seems to be invalid.
-rw-r--r--mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs b/mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs
index 0e00db62d45..4eb60044aa5 100644
--- a/mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs
+++ b/mcs/class/System/Test/System.Net.Sockets/UdpClientTest.cs
@@ -390,7 +390,9 @@ namespace MonoTests.System.Net.Sockets {
Socket s;
IPEndPoint localEP;
- client = new MyUdpClient ("localhost", IPEndPoint.MinPort);
+ // Bug #5503
+ // UDP port 0 doesn't seem to be valid.
+ client = new MyUdpClient ("127.0.0.1", 53);
s = client.Client;
Assert.IsNotNull (s, "#A:Client");
Assert.AreEqual (AddressFamily.InterNetwork, s.AddressFamily, "#A:Client:AddressFamily");
@@ -413,7 +415,7 @@ namespace MonoTests.System.Net.Sockets {
Assert.AreEqual (IPAddress.Loopback, localEP.Address, "#A:Client:LocalEndPoint/Address");
Assert.AreEqual (AddressFamily.InterNetwork, localEP.AddressFamily, "#A:Client:LocalEndPoint/AddressFamily");
- client = new MyUdpClient ("localhost", IPEndPoint.MaxPort);
+ client = new MyUdpClient ("127.0.0.1", IPEndPoint.MaxPort);
s = client.Client;
Assert.IsNotNull (s, "#B:Client");
Assert.AreEqual (AddressFamily.InterNetwork, s.AddressFamily, "#B:Client:AddressFamily");