mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
8362855: Test java/net/ipv6tests/TcpTest.java should report SkippedException when there no ia4addr or ia6addr
Reviewed-by: jpai
This commit is contained in:
parent
de59da27a6
commit
8fcbb110e9
@ -31,6 +31,7 @@
|
||||
* @library /test/lib
|
||||
* @build jdk.test.lib.NetworkConfiguration
|
||||
* jdk.test.lib.Platform
|
||||
* jtreg.SkippedException
|
||||
* @run main TcpTest -d
|
||||
*/
|
||||
|
||||
@ -38,6 +39,8 @@ import java.net.*;
|
||||
import java.io.*;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import jtreg.SkippedException;
|
||||
|
||||
public class TcpTest extends Tests {
|
||||
static ServerSocket server, server1, server2;
|
||||
static Socket c1, c2, c3, s1, s2, s3;
|
||||
@ -62,12 +65,10 @@ public class TcpTest extends Tests {
|
||||
public static void main (String[] args) throws Exception {
|
||||
checkDebug(args);
|
||||
if (ia4addr == null) {
|
||||
System.out.println ("No IPV4 addresses: exiting test");
|
||||
return;
|
||||
throw new SkippedException("No IPV4 addresses: exiting test");
|
||||
}
|
||||
if (ia6addr == null) {
|
||||
System.out.println ("No IPV6 addresses: exiting test");
|
||||
return;
|
||||
throw new SkippedException("No IPV6 addresses: exiting test");
|
||||
}
|
||||
dprintln ("Local Addresses");
|
||||
dprintln (ia4addr.toString());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user