FALSE
};
+#ifdef DBUS_UNIX
static Config fake_systemd_config = {
"valid-config-files/systemd-activation.conf",
NULL,
FALSE
};
+#endif
static Config side_effects_config = {
NULL,
g_assert (m == NULL);
}
+#ifdef DBUS_UNIX
+/* currently only used for the systemd activation test */
static void
expect_new_connection (Fixture *f)
{
dbus_message_unref (m);
}
+/* currently only used for the systemd activation test */
static void
take_well_known_name (Fixture *f,
DBusConnection *connection,
g_assert_cmpint (ret, ==, DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER);
}
+/* currently only used for the systemd activation test */
static void
expect_take_well_known_name (Fixture *f,
DBusConnection *connection,
"com.example.Nope");
dbus_message_unref (m);
}
+#endif /* DBUS_UNIX */
static void
teardown (Fixture *f,
setup, test_unicast_signal, teardown);
g_test_add ("/monitor/no-eavesdrop", Fixture, &no_eavesdrop_config,
setup, test_unicast_signal, teardown);
+
+#ifdef DBUS_UNIX
+ /* this relies on the systemd activation code path */
g_test_add ("/monitor/activation", Fixture, &fake_systemd_config,
setup, test_activation, teardown);
+#endif
return g_test_run ();
}