[gtk+/wip/baedert/gl: 9/95] test-render-nodes: Print a warning if we didn't generate anything



commit a883eac5f4280dbe2e942a084cb29d3075e0db7b
Author: Timm Bäder <mail baedert org>
Date:   Sat Nov 11 09:58:09 2017 +0100

    test-render-nodes: Print a warning if we didn't generate anything

 testsuite/gsk/test-render-nodes.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/gsk/test-render-nodes.c b/testsuite/gsk/test-render-nodes.c
index 0d3990c..7400265 100644
--- a/testsuite/gsk/test-render-nodes.c
+++ b/testsuite/gsk/test-render-nodes.c
@@ -709,6 +709,7 @@ generate (const char *name)
 {
   int i;
   GError *error = NULL;
+  gboolean wrote_file = FALSE;
 
   for (i = 0; i < G_N_ELEMENTS (functions); i++)
     {
@@ -729,9 +730,13 @@ generate (const char *name)
             }
 
           gsk_render_node_unref (node);
+          wrote_file = TRUE;
           break;
         }
     }
+
+  if (!wrote_file)
+    g_warning ("Could not generate %s", name);
 }
 
 int


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]