diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-01-13 19:32:40 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-01-14 18:32:05 -0500 |
commit | 20b92638eccb0b08cd40849f196d644883ba4351 (patch) | |
tree | ff384e014e5a6204859d75d73bbe9b2914f57d1b | |
parent | dccb83c9ec9ae55dd5af2c52589710e4e8cb1379 (diff) | |
download | gtk+-20b92638eccb0b08cd40849f196d644883ba4351.tar.gz |
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.
-rw-r--r-- | testsuite/css/style/test-css-style.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/css/style/test-css-style.c b/testsuite/css/style/test-css-style.c index fd998472bf..9c9cbb18e5 100644 --- a/testsuite/css/style/test-css-style.c +++ b/testsuite/css/style/test-css-style.c @@ -244,7 +244,10 @@ main (int argc, char **argv) { g_setenv ("GTK_CSS_DEBUG", "1", TRUE); - gtk_test_init (&argc, &argv); + if (argc >= 2 && strcmp (argv[1], "--generate") == 0) + gtk_init (); + else + gtk_test_init (&argc, &argv); g_object_set (gtk_settings_get_default (), "gtk-font-name", "Sans", |