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:
Evangelos Ribeiro Tzaras
2023-05-01 11:44:29 +02:00
parent b550617de2
commit e80abf713a
13 changed files with 33 additions and 40 deletions

View File

@@ -8,7 +8,7 @@
#include "calls-sdp-crypto-context.h"
#include <gtk/gtk.h>
#include <glib.h>
static void
@@ -173,7 +173,7 @@ int
main (int argc,
char *argv[])
{
gtk_test_init (&argc, &argv, NULL);
g_test_init (&argc, &argv, NULL);
g_test_add_func ("/Calls/SDP_crypto/manual", test_crypto_manual);
g_test_add_func ("/Calls/SDP_crypto/offer_answer", test_crypto_offer_answer);