[gtk/wip/otte/nodeeditor2: 10/30] testsuite: Print serialized nodes when parsing fails
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/nodeeditor2: 10/30] testsuite: Print serialized nodes when parsing fails
- Date: Thu, 2 May 2019 18:28:30 +0000 (UTC)
commit 21eb124dc0b5c9335724dc7c3f4d0b930711920b
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]