[gtk/wip/matthiasc/css-values: 26/31] testsuite: Improve --generate support
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/css-values: 26/31] testsuite: Improve --generate support
- Date: Tue, 14 Jan 2020 21:47:45 +0000 (UTC)
commit 21a9dbfffc8e2b3f3019975dd1d983a5ffca186a
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 13 19:32:40 2020 -0500
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.
testsuite/css/style/test-css-style.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/testsuite/css/style/test-css-style.c b/testsuite/css/style/test-css-style.c
index 5be302d6b1..24f558aaea 100644
--- a/testsuite/css/style/test-css-style.c
+++ b/testsuite/css/style/test-css-style.c
@@ -245,7 +245,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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]