testsuite: Print serialized nodes when parsing fails

This commit is contained in:
Timm Bäder 2019-04-24 11:26:34 +02:00 committed by Benjamin Otte
parent 9598e16753
commit 44b3b8937a

View File

@ -26,6 +26,9 @@ main (int argc, char **argv)
bytes = gsk_render_node_serialize (node); bytes = gsk_render_node_serialize (node);
/* and deserialize again... */ /* and deserialize again... */
deserialized = gsk_render_node_deserialize (bytes, &error); 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); g_assert_no_error (error);
/* And check if that all worked. */ /* And check if that all worked. */