harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r493198 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/DatagramSocketTest.java
Date Fri, 05 Jan 2007 21:26:29 GMT
Author: tellison
Date: Fri Jan  5 13:26:29 2007
New Revision: 493198

URL: http://svn.apache.org/viewvc?view=rev&rev=493198
Log:
Fix Datagram testcase to work on systems that don't have port 80 free.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/DatagramSocketTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/DatagramSocketTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/DatagramSocketTest.java?view=diff&rev=493198&r1=493197&r2=493198
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/DatagramSocketTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/DatagramSocketTest.java
Fri Jan  5 13:26:29 2007
@@ -964,7 +964,7 @@
         
         // Regression test for Harmony-2938
         InetAddress i = InetAddress.getByName("127.0.0.1");
-        DatagramSocket d = new DatagramSocket(80, i);
+        DatagramSocket d = new DatagramSocket(0, i);
         try {
             d.send(new DatagramPacket(new byte[] { 1 }, 1));
             fail("should throw NPE.");



Mime
View raw message