Ignore disconnected interfaces in HttpListenerRequestTest.HttpRequestIsLocal
authorNiklas Therning <niklas@therning.org>
Tue, 22 Nov 2016 13:27:59 +0000 (14:27 +0100)
committerNiklas Therning <niklas@therning.org>
Tue, 22 Nov 2016 13:27:59 +0000 (14:27 +0100)
commit39c699b54a54012554001ec3896092d7e74dfbd3
tree1ef8fb437d82bf9e5b8e56ea1bed2c6bf15aa30d
parent3592a79dc8bcd50d166d9fc8fc589fde3005f999
Ignore disconnected interfaces in HttpListenerRequestTest.HttpRequestIsLocal

This test creates an HttpListener for every IP address of all network
interfaces. On Windows disconnected network interfaces have unroutable IP
addresses (169.254.XXX.XXX) and this test fails when it tries to listen to
such an IP address. This patch adds a check to the test to ignore network
interfaces which don't have OperationalStatus == Up.
mcs/class/System/Test/System.Net/HttpListenerRequestTest.cs