harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r996092 - /harmony/enhanced/java/trunk/classlib/support/src/test/java/tests/support/Support_NetworkInterface.java
Date Sat, 11 Sep 2010 07:43:16 GMT
Author: hindessm
Date: Sat Sep 11 07:43:15 2010
New Revision: 996092

URL: http://svn.apache.org/viewvc?rev=996092&view=rev
Log:
Applying patch from "[#HARMONY-6633]
[classlib][support]MulticastSocketTest.test_joinGroupLjava_net_SocketAddres
sLjava_net_NetworkInterface always failed on linux platform".

Modified:
    harmony/enhanced/java/trunk/classlib/support/src/test/java/tests/support/Support_NetworkInterface.java

Modified: harmony/enhanced/java/trunk/classlib/support/src/test/java/tests/support/Support_NetworkInterface.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/support/src/test/java/tests/support/Support_NetworkInterface.java?rev=996092&r1=996091&r2=996092&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/support/src/test/java/tests/support/Support_NetworkInterface.java
(original)
+++ harmony/enhanced/java/trunk/classlib/support/src/test/java/tests/support/Support_NetworkInterface.java
Sat Sep 11 07:43:15 2010
@@ -42,6 +42,13 @@ public class Support_NetworkInterface {
 				result = false;
 			}
 		}
-		return result;
+
+        if (platform.startsWith("Linux")) {
+            if ((theInterface.getDisplayName().equals("lo"))
+                    || (theInterface.getDisplayName().equals("teredo"))) {
+                result = false;
+            }
+        }
+        return result;
 	}
 }



Mime
View raw message