# HG changeset patch # User dfuchs # Date 1568042023 -3600 # Node ID bc4e7a84e89d645422a0f09e935f02278233f484 # Parent 505e28fe17691fff461324068bda1370e3e8edc8 8230132: java/net/NetworkInterface/NetworkInterfaceRetrievalTests.java to skip Teredo Tunneling Pseudo-Interface Summary: The test is updated to skip Teredo pseudo interfaces on windows. Reviewed-by: michaelm, vtewari, aefimov Contributed-by: patrick.concannon@oracle.com diff -r 505e28fe1769 -r bc4e7a84e89d test/jdk/java/net/NetworkInterface/NetworkInterfaceRetrievalTests.java --- a/test/jdk/java/net/NetworkInterface/NetworkInterfaceRetrievalTests.java Mon Sep 09 15:42:16 2019 +0200 +++ b/test/jdk/java/net/NetworkInterface/NetworkInterfaceRetrievalTests.java Mon Sep 09 16:13:43 2019 +0100 @@ -24,6 +24,7 @@ /** * @test * @bug 8179559 8225239 + * @library /test/lib * @modules java.base/java.net:open */ @@ -31,6 +32,7 @@ import java.net.NetworkInterface; import java.util.Enumeration; import java.lang.reflect.Method; +import jdk.test.lib.Platform; public class NetworkInterfaceRetrievalTests { public static void main(String[] args) throws Exception { @@ -44,6 +46,12 @@ .getNetworkInterfaces(); while (en.hasMoreElements()) { NetworkInterface ni = en.nextElement(); + + //JDK-8230132: Should not test on Windows with Teredo Tunneling Pseudo-Interface + String dName = ni.getDisplayName(); + if (Platform.isWindows() && dName != null && dName.contains("Teredo")) + continue; + Enumeration addrs = ni.getInetAddresses(); System.out.println("############ Checking network interface + " + ni + " #############");