dbus_clear_message (&m);
}
+static Config max_connections_per_user_config = {
+ NULL, 1, "valid-config-files/max-connections-per-user.conf",
+ TEST_USER_ME, SPECIFY_ADDRESS
+};
+
static void
test_max_connections (Fixture *f,
gconstpointer context)
DBusError error = DBUS_ERROR_INIT;
DBusConnection *third_conn;
DBusConnection *failing_conn;
+#ifdef DBUS_WIN
+ const Config *config = context;
+#endif
if (f->skip)
return;
+#ifdef DBUS_WIN
+ if (config == &max_connections_per_user_config)
+ {
+ /* <limit name="max_connections_per_user"/> is currently only
+ * implemented in terms of Unix uids. It could be implemented for
+ * Windows SIDs too, but there wouldn't be much point, because we
+ * don't support use of a multi-user dbus-daemon on Windows, so
+ * in practice all connections have the same SID. */
+ g_test_skip ("Maximum connections per Windows SID are not "
+ "implemented");
+ return;
+ }
+#endif
+
/* We have two connections already */
g_assert (f->left_conn != NULL);
g_assert (f->right_conn != NULL);
TEST_USER_ME, SPECIFY_ADDRESS
};
-static Config max_connections_per_user_config = {
- NULL, 1, "valid-config-files/max-connections-per-user.conf",
- TEST_USER_ME, SPECIFY_ADDRESS
-};
-
static Config max_replies_per_connection_config = {
NULL, 1, "valid-config-files/max-replies-per-connection.conf",
TEST_USER_ME, SPECIFY_ADDRESS