testsuite: Print serialized nodes when parsing fails

This commit is contained in:
Timm Bäder
2019-04-24 11:26:34 +02:00
parent b56c102f8e
commit 982524c860

View File

@@ -26,6 +26,9 @@ main (int argc, char **argv)
bytes = gsk_render_node_serialize (node);
/* and deserialize again... */
deserialized = gsk_render_node_deserialize (bytes, &error);
if (error)
g_message ("OUTPUT:\n%.*s", (int)g_bytes_get_size (bytes), (char *)g_bytes_get_data (bytes, NULL));
g_assert_no_error (error);
/* And check if that all worked. */