mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8220673: Add test library support for determining platform IP support
Reviewed-by: dfuchs, chegar
This commit is contained in:
parent
c709e1cbf0
commit
0bb6328356
57 changed files with 461 additions and 75 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue