X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gio%2Ftests%2Fgdbus-auth.c;h=3b24b092e483fa91c6012d735fb864fab157a5ef;hb=a6f83d73e59cc2ab0353ff3edf38d27185852581;hp=737770e8d3251c880951e1b2315f913be4be01af;hpb=9dce93514eb80cd54c2c02db3abf50f2d5a34fb0;p=platform%2Fupstream%2Fglib.git diff --git a/gio/tests/gdbus-auth.c b/gio/tests/gdbus-auth.c index 737770e..3b24b09 100644 --- a/gio/tests/gdbus-auth.c +++ b/gio/tests/gdbus-auth.c @@ -269,6 +269,11 @@ main (int argc, g_type_init (); g_test_init (&argc, &argv, NULL); + /* all the tests use a session bus with a well-known address that we can bring up and down + * using session_bus_up() and session_bus_down(). + */ + g_unsetenv ("DISPLAY"); + g_setenv ("DBUS_SESSION_BUS_ADDRESS", session_bus_get_temporary_address (), TRUE); session_bus_up (); g_test_add_func ("/gdbus/auth/client/EXTERNAL", auth_client_external);