From: Sebastien Pouliot Date: Thu, 5 Mar 2015 19:03:04 +0000 (-0500) Subject: [tests] IPInterfaceProperties DNS address does not currently work on iOS devices... X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=f2e21ed3fae6869ad65f42372b61a8f4383e759d;p=mono.git [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 --- 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 } }