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:
@@ -9,7 +9,7 @@
|
||||
#include "calls-application.h"
|
||||
|
||||
#include <glib/gstdio.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <glib.h>
|
||||
|
||||
static gboolean
|
||||
on_idle_quit (gpointer user_data)
|
||||
@@ -131,7 +131,7 @@ main (int argc,
|
||||
g_print ("Setting 'CALLS_RECORD_DIR' to '%s'\n", rec_dir);
|
||||
g_setenv ("CALLS_RECORD_DIR", rec_dir, TRUE);
|
||||
|
||||
gtk_test_init (&argc, &argv, NULL);
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
g_test_add_func ("/Calls/application/shutdown_daemon", (GTestFunc) test_application_shutdown_daemon);
|
||||
g_test_add_func ("/Calls/application/shutdown_no_daemon", (GTestFunc) test_application_shutdown_no_daemon);
|
||||
|
||||
Reference in New Issue
Block a user