equal
deleted
inserted
replaced
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 4097826 |
26 * @bug 4097826 |
|
27 * @library /test/lib |
27 * @summary SOCKS support inadequate |
28 * @summary SOCKS support inadequate |
28 * @run main/timeout=40/othervm -DsocksProxyHost=nonexistant ProxyCons |
29 * @run main/timeout=40/othervm -DsocksProxyHost=nonexistant ProxyCons |
29 * @run main/timeout=40/othervm -DsocksProxyHost=nonexistant -Djava.net.preferIPv4Stack=true ProxyCons |
30 * @run main/timeout=40/othervm -DsocksProxyHost=nonexistant -Djava.net.preferIPv4Stack=true ProxyCons |
30 */ |
31 */ |
31 |
32 |
32 import java.net.*; |
33 import java.net.*; |
|
34 import jdk.test.lib.net.IPSupport; |
|
35 |
33 public class ProxyCons { |
36 public class ProxyCons { |
34 class Server extends Thread { |
37 class Server extends Thread { |
35 ServerSocket server; |
38 ServerSocket server; |
36 Server (ServerSocket server) { |
39 Server (ServerSocket server) { |
37 super (); |
40 super (); |
75 ss.close(); |
78 ss.close(); |
76 } |
79 } |
77 } |
80 } |
78 |
81 |
79 public static void main(String[] args) throws Exception { |
82 public static void main(String[] args) throws Exception { |
|
83 IPSupport.skipIfCurrentConfigurationIsInvalid(); |
|
84 |
80 ProxyCons c = new ProxyCons(); |
85 ProxyCons c = new ProxyCons(); |
81 c.test(); |
86 c.test(); |
82 } |
87 } |
83 } |
88 } |