mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 14:50:06 +00:00
testsuite: Improve --generate support
We don't want annoying spew from GTest when using --generate, since it interferes with just piping the output to a text file.
This commit is contained in:
parent
dccb83c9ec
commit
20b92638ec
@ -244,6 +244,9 @@ main (int argc, char **argv)
|
|||||||
{
|
{
|
||||||
g_setenv ("GTK_CSS_DEBUG", "1", TRUE);
|
g_setenv ("GTK_CSS_DEBUG", "1", TRUE);
|
||||||
|
|
||||||
|
if (argc >= 2 && strcmp (argv[1], "--generate") == 0)
|
||||||
|
gtk_init ();
|
||||||
|
else
|
||||||
gtk_test_init (&argc, &argv);
|
gtk_test_init (&argc, &argv);
|
||||||
|
|
||||||
g_object_set (gtk_settings_get_default (),
|
g_object_set (gtk_settings_get_default (),
|
||||||
|
Loading…
Reference in New Issue
Block a user