tests: Initialize dbus before gtk
authorAlexander Larsson <alexl@redhat.com>
Tue, 4 Feb 2020 13:13:33 +0000 (14:13 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 4 Feb 2020 13:13:33 +0000 (14:13 +0100)
commit008eb0412596ef9a76d5338b86f25399a29f830e
treeaecf7ba81a3cb42dccfb6ead1ad72efbaf0dcbad
parent85e59220a5cf690a7e3a50cf2811bdd4b4848136
tests: Initialize dbus before gtk

These days initilizing gtk may create a connection to the sesson bus,
so we have to initialize GTestDBus before initalizing gtk, or we'll
use the address of the "real" session bus (and remember that in the
global).

To further muck things up, g_test_dbus_up() resets important env
vars like DISPLAY and XDG_RUNTIME_DIR, which we have to re-set.
testsuite/gtk/defaultvalue.c
testsuite/gtk/objects-finalize.c