From f2e21ed3fae6869ad65f42372b61a8f4383e759d Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Thu, 5 Mar 2015 14:03:04 -0500 Subject: [PATCH] [tests] IPInterfaceProperties DNS address does not currently work on iOS devices (since it read /etc/resolve.conf). Ignore it for XI until #27707 is fixed --- .../IPInterfacePropertiesTest.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mcs/class/System/Test/System.Net.NetworkInformation/IPInterfacePropertiesTest.cs b/mcs/class/System/Test/System.Net.NetworkInformation/IPInterfacePropertiesTest.cs index a9f896a9112..6cc8ba3582a 100644 --- a/mcs/class/System/Test/System.Net.NetworkInformation/IPInterfacePropertiesTest.cs +++ b/mcs/class/System/Test/System.Net.NetworkInformation/IPInterfacePropertiesTest.cs @@ -66,7 +66,11 @@ namespace MonoTests.System.Net.NetworkInformation IPAddressCollection dnsAddresses = adapterProperties.DnsAddresses; numDnsAddresses += dnsAddresses.Count; } + // reading /etc/resolve.conf does not work on iOS devices (but works on simulator) + // ref: https://bugzilla.xamarin.com/show_bug.cgi?id=27707 +#if !MONOTOUCH Assert.IsTrue (numDnsAddresses > 0); +#endif } } -- 2.25.1