8054118: java/net/ipv6tests/UdpTest.java failed intermittently
Ignore the Teredo interface on windows test machines Reviewed-by: chegar
This commit is contained in:
parent
bbaf4bdb09
commit
1db8e112f7
@ -26,6 +26,9 @@ import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
public class Tests {
|
||||
|
||||
static boolean isWindows = System.getProperty("os.name").startsWith("Windows");
|
||||
|
||||
/**
|
||||
* performs a simple exchange of data between the two sockets
|
||||
* and throws an exception if there is any problem.
|
||||
@ -264,6 +267,12 @@ public class Tests {
|
||||
if (ifs != null) {
|
||||
while (ifs.hasMoreElements()) {
|
||||
NetworkInterface nic = (NetworkInterface)ifs.nextElement();
|
||||
// Skip (Windows)Teredo Tunneling Pseudo-Interface
|
||||
if (isWindows) {
|
||||
String dName = nic.getDisplayName();
|
||||
if (dName != null && dName.contains("Teredo"))
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
if (nic.isUp() && !nic.isLoopback())
|
||||
return nic;
|
||||
|
Loading…
x
Reference in New Issue
Block a user