mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
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:
parent
69500f356e
commit
fdff21ae13
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user