With this change,
DBUS_SESSION_BUS_ADDRESS= make check
succeed here.
gapplication_example_actions_SOURCES = gapplication-example-actions.c
gapplication_example_actions_LDADD = $(progs_ldadd)
gapplication_example_actions_SOURCES = gapplication-example-actions.c
gapplication_example_actions_LDADD = $(progs_ldadd)
+gmenumodel_SOURCES = gmenumodel.c gdbus-sessionbus.h gdbus-sessionbus.c
gmenumodel_LDADD = $(progs_ldadd)
schema_tests = \
gmenumodel_LDADD = $(progs_ldadd)
schema_tests = \
+#include "gdbus-sessionbus.h"
+
/* Markup printing {{{1 */
/* This used to be part of GLib, but it was removed before the stable
/* Markup printing {{{1 */
/* This used to be part of GLib, but it was removed before the stable
int
main (int argc, char **argv)
{
int
main (int argc, char **argv)
{
- g_test_init (&argc, &argv, NULL);
+ g_test_init (&argc, &argv, NULL);
+ g_unsetenv ("DISPLAY");
+ g_setenv ("DBUS_SESSION_BUS_ADDRESS", session_bus_get_temporary_address (), TRUE);
+
+ session_bus_up ();
+
g_test_add_func ("/gmenu/equality", test_equality);
g_test_add_func ("/gmenu/random", test_random);
g_test_add_func ("/gmenu/dbus/roundtrip", test_dbus_roundtrip);
g_test_add_func ("/gmenu/equality", test_equality);
g_test_add_func ("/gmenu/random", test_random);
g_test_add_func ("/gmenu/dbus/roundtrip", test_dbus_roundtrip);
g_test_add_func ("/gmenu/links", test_links);
g_test_add_func ("/gmenu/mutable", test_mutable);
g_test_add_func ("/gmenu/links", test_links);
g_test_add_func ("/gmenu/mutable", test_mutable);
+ ret = g_test_run ();
+
+ session_bus_down ();
+
+ return ret;
}
/* vim:set foldmethod=marker: */
}
/* vim:set foldmethod=marker: */