[System] Disable a few tests that don't work on Android.
authorRodrigo Kumpera <kumpera@gmail.com>
Mon, 20 Mar 2017 22:01:30 +0000 (15:01 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Wed, 5 Apr 2017 21:18:26 +0000 (14:18 -0700)
mcs/class/System/Test/System.Diagnostics/ProcessTest.cs
mcs/class/System/Test/System.Net/DnsTest.cs

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