[gtk/wip/baedert/nodeeditor: 32/42] testsuite: Print serialized nodes when parsing fails
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/nodeeditor: 32/42] testsuite: Print serialized nodes when parsing fails
- Date: Thu, 25 Apr 2019 15:28:08 +0000 (UTC)
commit d501b7f79b604ea2e55ef29e6878789a0b0ff403
Author: Timm Bäder <mail baedert org>
Date: Wed Apr 24 11:26:34 2019 +0200
testsuite: Print serialized nodes when parsing fails
testsuite/gsk/serialize-deserialize.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/testsuite/gsk/serialize-deserialize.c b/testsuite/gsk/serialize-deserialize.c
index cb79eb43e6..21621e3f95 100644
--- a/testsuite/gsk/serialize-deserialize.c
+++ b/testsuite/gsk/serialize-deserialize.c
@@ -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. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]