8023555: test/java/net/Socks/SocksProxyVersion.java fails when machine name is localhost
Reviewed-by: chegar, alanb
--- a/jdk/test/java/net/Socks/SocksProxyVersion.java Mon Oct 14 10:42:36 2013 +0200
+++ b/jdk/test/java/net/Socks/SocksProxyVersion.java Mon Oct 14 11:47:54 2013 +0100
@@ -41,6 +41,10 @@
volatile boolean failed;
public static void main(String[] args) throws Exception {
+ if (InetAddress.getLocalHost().isLoopbackAddress()) {
+ System.out.println("Test cannot run. getLocalHost returns a loopback address");
+ return;
+ }
new SocksProxyVersion();
}