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

This commit is contained in:
Timm Bäder 2017-11-11 09:58:09 +01:00
parent 04742f320e
commit 8c8583d04f

View File

@ -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