From fdff21ae13319c4a9e4b29bd53bcede8939666ad Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 14 Feb 2024 10:36:54 -0500 Subject: [PATCH] testsuite: Don't use g_test_init g_test_init has the ugly habit of aborting if G_DISABLE_ASSERT is defined, and we want to run our tests in a release build too. Use gtk_test_init instead, which works around this issue. --- testsuite/gsk/normalize.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/testsuite/gsk/normalize.c b/testsuite/gsk/normalize.c index 40a459888d..c7c66175a5 100644 --- a/testsuite/gsk/normalize.c +++ b/testsuite/gsk/normalize.c @@ -73,9 +73,7 @@ test_normalize_linear_gradient (void) int main (int argc, char *argv[]) { - g_test_init (&argc, &argv, NULL); - - gtk_init (); + gtk_test_init (&argc, &argv); g_test_add_func ("/node/normalize/color", test_normalize_color); g_test_add_func ("/node/normalize/linear-gradient", test_normalize_linear_gradient);