gio/tests/network-address: fix when no network is available
authorDan Winship <danw@gnome.org>
Tue, 27 May 2014 13:39:46 +0000 (09:39 -0400)
committerDan Winship <danw@gnome.org>
Tue, 27 May 2014 13:42:50 +0000 (09:42 -0400)
commit84fd73b2fa098ff63656e7cbe1ef211f948123c2
tree51da6fc8a5289e92f2025c7fbfa1e7613f98ee07
parente93f7be60d6a45ca5ca76fd033be887f10e886a4
gio/tests/network-address: fix when no network is available

GResolver doesn't do full validation of its inputs, so in some of
these tests, the fact that we were getting back
G_RESOLVER_ERROR_NOT_FOUND is because the junk string was getting
passed to an upstream DNS resolver, which returned NXDOMAIN. But if
there's no network on the machine then we'd get
G_RESOLVER_ERROR_INTERNAL instead in that case.
gio/tests/network-address.c