From 8d71c9c4af3b8986ef009dc38efe4d5498d290d5 Mon Sep 17 00:00:00 2001 From: Marek Habersack Date: Thu, 11 Jun 2015 19:58:07 +0200 Subject: [PATCH] [tests] Works in stand-alone app, fails in nunit --- .../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 6cc8ba3582a..cd75661322b 100644 --- a/mcs/class/System/Test/System.Net.NetworkInformation/IPInterfacePropertiesTest.cs +++ b/mcs/class/System/Test/System.Net.NetworkInformation/IPInterfacePropertiesTest.cs @@ -56,6 +56,9 @@ namespace MonoTests.System.Net.NetworkInformation } [Test] + // The code works as expected when part of a regular app. It fails when executed from within an NUnit test + // Might be a problem with the test suite. To investigate. + [Category("AndroidNotWorking")] public void AtLeastOneDnsAddress () { int numDnsAddresses = 0; @@ -66,6 +69,7 @@ namespace MonoTests.System.Net.NetworkInformation IPAddressCollection dnsAddresses = adapterProperties.DnsAddresses; numDnsAddresses += dnsAddresses.Count; } + Console.WriteLine ("numDnsAddresses == {0}", numDnsAddresses); // 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 -- 2.25.1