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.
This commit is contained in:
Matthias Clasen 2024-02-14 10:36:54 -05:00
parent 69500f356e
commit fdff21ae13

View File

@ -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);