diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2018-12-06 17:08:29 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2018-12-06 17:08:29 +0100 |
commit | 0f5f95ab6eda8363b272285264cb8e07e3f8a1f1 (patch) | |
tree | cab244ccdc1947eff54df6161c7a22aea134072d /test/internals | |
parent | 4a9a0039043d98b6ea38d3f6c501515cbd5b04f6 (diff) | |
download | dbus-0f5f95ab6eda8363b272285264cb8e07e3f8a1f1.tar.gz |
Skip server oom wildcard test on Windows to avoid firewall exception request
After starting the test on Windows 10, whether the local user is an
administrator or not, a dialog box appears with a warning that some
features of the app have been blocked by the firewall and prompts for
credentials for an administrator account while the test continues to
run and pass.
If this request is aborted, the dialog disappears; no restrictions are
visible for the test case. When the test is restarted, the dialog is also
no longer displayed.
In the firewall configuration you can then see that test-server-oom.exe
has been added (but not enabled) for public networks, although no
confirmation has been received from an administrator account.
Diffstat (limited to 'test/internals')
-rw-r--r-- | test/internals/server-oom.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/internals/server-oom.c b/test/internals/server-oom.c index 605566c8..dc3127fa 100644 --- a/test/internals/server-oom.c +++ b/test/internals/server-oom.c @@ -46,6 +46,15 @@ test_new_server (void *user_data, DBusServer *server = NULL; dbus_bool_t result = FALSE; +#ifdef DBUS_WIN + if (strstr (listen_address, "bind=*") != NULL) + { + g_test_skip ("bind=* not tested on Windows to avoid a firewall-exception request (dbus#64)"); + result = TRUE; + goto out; + } +#endif + server = dbus_server_listen (listen_address, &error); if (server == NULL) |