We run jdk_net and nio_networkchannel tests on IPv6 only environments.
For linux it is not possible to fully disable IPv4, as such the env are configured as only IPv6
test fails because IPSupport.hasIPv4() returns
add additional check to IPSupport.isIPv4Configured() and IPSupport.isIPv6Configured() and amend logic to choose IPv6 test block
The windows environment failures should be addressed in another bug
try {
NetworkInterface.getNetworkInterfaces();
throw new RuntimeException("NetworkInterface.getNetworkInterfaces() should throw SocketException");
} catch (SocketException expected) {
System.out.println("caught expected exception: " + expected);
}
try {
NetworkInterface.networkInterfaces();
throw new RuntimeException("NetworkInterface.networkInterfaces() should throw SocketException");
} catch (SocketException expected) {
System.out.println("caught expected exception: " + expected);
}
the setting of -Djava.net.preferIPv4Stack=true is expecting the filtering NetworkInterfaces without IPv4 configuration ... BUT is that reasonable semantics
For linux it is not possible to fully disable IPv4, as such the env are configured as only IPv6
test fails because IPSupport.hasIPv4() returns
add additional check to IPSupport.isIPv4Configured() and IPSupport.isIPv6Configured() and amend logic to choose IPv6 test block
The windows environment failures should be addressed in another bug
try {
NetworkInterface.getNetworkInterfaces();
throw new RuntimeException("NetworkInterface.getNetworkInterfaces() should throw SocketException");
} catch (SocketException expected) {
System.out.println("caught expected exception: " + expected);
}
try {
NetworkInterface.networkInterfaces();
throw new RuntimeException("NetworkInterface.networkInterfaces() should throw SocketException");
} catch (SocketException expected) {
System.out.println("caught expected exception: " + expected);
}
the setting of -Djava.net.preferIPv4Stack=true is expecting the filtering NetworkInterfaces without IPv4 configuration ... BUT is that reasonable semantics
- relates to
-
JDK-8280091 Bypass execution of tests with -Djava.net.preferIPv4Stack=true property setting in IPv6 only environment
-
- Open
-