[gtk/wip/otte/nodeeditor2: 34/55] testsuite: Print serialized nodes when parsing fails
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/nodeeditor2: 34/55] testsuite: Print serialized nodes when parsing fails
- Date: Sat, 4 May 2019 08:16:19 +0000 (UTC)
commit 2d374559bf5aaa72216da6510e64996d84d32d78
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 45d4472a70..3f0941031d 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]