harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lian...@apache.org
Subject svn commit: r518014 - /harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/SocketPermissionTest.java
Date Wed, 14 Mar 2007 04:57:02 GMT
Author: liangyx
Date: Tue Mar 13 21:57:01 2007
New Revision: 518014

URL: http://svn.apache.org/viewvc?view=rev&rev=518014
Log:
Fix bug of SocketPermissionTest when the target ip is resolved to host

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

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/SocketPermissionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/SocketPermissionTest.java?view=diff&rev=518014&r1=518013&r2=518014
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/SocketPermissionTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/net/SocketPermissionTest.java
Tue Mar 13 21:57:01 2007
@@ -166,9 +166,7 @@
 			host = InetAddress.getByName(Support_Configuration.UnresolvedIP);
 		} catch (UnknownHostException e) {
 		}
-		if (!host.getHostName().equals(Support_Configuration.UnresolvedIP)) {
-			fail("IP maps to host: " + host);
-		}
+		
 		SocketPermission perm1 = new SocketPermission(
 				Support_Configuration.UnresolvedIP, "connect");
 		SocketPermission perm2 = new SocketPermission(



Mime
View raw message