You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2009/07/15 16:25:38 UTC

svn commit: r794281 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java

Author: hindessm
Date: Wed Jul 15 14:25:38 2009
New Revision: 794281

URL: http://svn.apache.org/viewvc?rev=794281&view=rev
Log:
This regression test for HARMONY-946 should actually failed due to the
spurious space at the end of the 0.0.0.0 string.  Fixing the typo so
it should pass on RI too now.  We need to make it fail so I've raised
'HARMONY-6273 [classlib] [luni] InetAddress.getByName("0.0.0.0 ")
should throw UnknownHostException'.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java?rev=794281&r1=794280&r2=794281&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/SocketTest.java Wed Jul 15 14:25:38 2009
@@ -545,7 +545,7 @@
 
         // Regression for HARMONY-946
         ServerSocket ss = new ServerSocket(0);
-        Socket s = new Socket("0.0.0.0 ", ss.getLocalPort());
+        Socket s = new Socket("0.0.0.0", ss.getLocalPort());
         ss.close();
         s.close();
     }