Răsfoiți Sursa

[System] Disable a few tests that don't work on Android.

Rodrigo Kumpera 8 ani în urmă
părinte
comite
1fb2ab2244

+ 3 - 0
mcs/class/System/Test/System.Diagnostics/ProcessTest.cs

@@ -1134,6 +1134,7 @@ namespace MonoTests.System.Diagnostics
 		}
 
 		[Test]
+		[NUnit.Framework.Category ("AndroidNotWorking")] //SELinux makes probing the parent process impossible
 		public void NonChildProcessWaitForExit ()
 		{
 			if (!RunningOnUnix)
@@ -1157,6 +1158,7 @@ namespace MonoTests.System.Diagnostics
 		}
 
 		[Test]
+		[NUnit.Framework.Category ("AndroidNotWorking")] //SELinux makes probing the parent process impossible
 		public void NonChildProcessName ()
 		{
 			if (!RunningOnUnix)
@@ -1171,6 +1173,7 @@ namespace MonoTests.System.Diagnostics
 		}
 
 		[Test]
+		[NUnit.Framework.Category ("AndroidNotWorking")] //SELinux makes probing the parent process impossible
 		public void NonChildProcessId ()
 		{
 			if (!RunningOnUnix)

+ 1 - 14
mcs/class/System/Test/System.Net/DnsTest.cs

@@ -219,26 +219,13 @@ namespace MonoTests.System.Net
 #if FEATURE_NO_BSD_SOCKETS
 		[ExpectedException (typeof (PlatformNotSupportedException))]
 #endif
+		[NUnit.Framework.Category ("AndroidNotWorking")] //Some Android devices like to return catch-all IPs for invalid host names.
 		public void GetHostByName ()
 		{
 			SubTestGetHostByName (site1Name, site1Dot);
 			SubTestGetHostByName (site2Name, site2Dot);
 			try {
 				var entry = Dns.GetHostByName (noneExistingSite);
-				/*
-				 * Work around broken t-online.de DNS Server.
-				 * 
-				 * T-Online's DNS Server for DSL Customers resolves
-				 * non-exisitng domain names to
-				 * http://navigationshilfe1.t-online.de/dnserror?url=....
-				 * instead of reporting an error.
-				 */
-				var navigationshilfe1 = IPAddress.Parse ("80.156.86.78");
-				var navigationshilfe2 = IPAddress.Parse ("62.157.140.133");
-				foreach (var addr in entry.AddressList) {
-					if (addr.Equals (navigationshilfe1) || addr.Equals (navigationshilfe2))
-						return;
-				}
 				Assert.Fail ("Should raise a SocketException (assuming that '" + noneExistingSite + "' does not exist)");
 			} catch (SocketException) {
 			}