tests/network-monitor: Always use the dummy proxy resolver
If glib-networking is installed and built with libproxy support, this test will use it. If a proxy is set in the environment, we might get correctly told to go through it for certain accesses. However, this isn't going to work, because the testsuite monkeys with the network monitor to tell it that all addresses - including the proxy - aren't reachable. We're trying to check if adding networks to a GNetworkMonitor works in general. Proxies just get in the way here, so let's use the built in dummy proxy resolver which just tells us that all URLs are directly accessible. https://bugzilla.gnome.org/show_bug.cgi?id=794801
-
@iainl I doubt
g_setenv
is safe to use afterg_test_init
. You should reverse the order here. -
🚫 @pwithnallMaintainerI wouldn’t worry about that;
g_test_init()
makes very few GLib calls, doesn’t spawn any threads, and doesn’t touch GIO at all. Having them this way round is safe enough.
Please register or sign in to comment