mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
test-render-nodes: Print a warning if we didn't generate anything
This commit is contained in:
parent
04742f320e
commit
8c8583d04f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user