tests: Use g_test_init instead of gtk_test_init
gtk_test_init() ends up calling gtk_init() which tries opening the default display. CI jobs sometimes seem to trip over this even when run through xvfb-run. Therefore we use g_test_init() instead.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
#include "calls-provider.h"
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
#include <glib.h>
|
||||
#include <libpeas/peas.h>
|
||||
|
||||
static void
|
||||
@@ -52,7 +52,7 @@ main (gint argc,
|
||||
const gchar *dir;
|
||||
g_autofree char *default_plugin_dir_provider = NULL;
|
||||
|
||||
gtk_test_init (&argc, &argv, NULL);
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
peas = peas_engine_get_default ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user