8220673: Add test library support for determining platform IP support

Reviewed-by: dfuchs, chegar
This commit is contained in:
Arthur Eubanks 2019-04-16 13:06:23 -07:00 committed by Arthur Eubanks
parent c709e1cbf0
commit 0bb6328356
57 changed files with 461 additions and 75 deletions

View file

@ -23,6 +23,7 @@
/*
* @test
* @bug 4408755
* @library /test/lib
* @summary This tests whether it's possible to get some informations
* out of a closed socket. This is for backward compatibility
* purposes.
@ -31,10 +32,13 @@
*/
import java.net.*;
import jdk.test.lib.net.IPSupport;
public class TestClose {
public static void main(String[] args) throws Exception {
IPSupport.skipIfCurrentConfigurationIsInvalid();
ServerSocket ss;
Socket s;
InetAddress ad1, ad2;