提交 d42241a0 编写于 作者: S sgehwolf

8226928: [TESTBUG] test/java/net/NetworkInterface/IPv4Only.java fails intermittently on AIX

Summary: Set the property on the command line as the JDK 11 version
Reviewed-by: clanger, andrew, chegar
上级 ce8986c7
......@@ -22,8 +22,8 @@
*/
/* @test
* @bug 6964714
* @run main/othervm IPv4Only
* @bug 6964714 8226928
* @run main/othervm -Djava.net.preferIPv4Stack=true IPv4Only
* @summary Test the networkinterface listing with java.net.preferIPv4Stack=true.
*/
......@@ -34,8 +34,6 @@ import java.util.*;
public class IPv4Only {
public static void main(String[] args) throws Exception {
System.setProperty("java.net.preferIPv4Stack","true");
Enumeration<NetworkInterface> nifs = NetworkInterface.getNetworkInterfaces();
while (nifs.hasMoreElements()) {
NetworkInterface nif = nifs.nextElement();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册