]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Skip server oom wildcard test on Windows to avoid firewall exception request
authorRalf Habacker <ralf.habacker@freenet.de>
Thu, 6 Dec 2018 16:08:29 +0000 (17:08 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 6 Dec 2018 16:08:29 +0000 (17:08 +0100)
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.

test/internals/server-oom.c

index 605566c89b2104f986d339daedc295fdae20b501..dc3127fa569f611ff40d29baaaeb78f21c9ff8df 100644 (file)
@@ -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)