summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-12-26 17:07:24 +0100
committerBenjamin Otte <otte@redhat.com>2016-12-26 17:22:01 +0100
commitd7e867aa95583a107e5b8174caab6b9121acc16a (patch)
treec831b3c45ddafa30cefd4cf1ef906f3e15c9d0b7 /tests
parent3c8518dce38f92d86cbfe523df94fdf666e07017 (diff)
downloadgtk+-d7e867aa95583a107e5b8174caab6b9121acc16a.tar.gz
tests: Make rendernode --dump-variant actually work
Diffstat (limited to 'tests')
-rw-r--r--tests/rendernode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/rendernode.c b/tests/rendernode.c
index d7924d233a..42781a11f5 100644
--- a/tests/rendernode.c
+++ b/tests/rendernode.c
@@ -53,8 +53,11 @@ main(int argc, char **argv)
if (dump_variant)
{
GVariant *variant = g_variant_new_from_bytes (G_VARIANT_TYPE ("(suuv)"), bytes, FALSE);
+ char *s;
- g_variant_print (variant, FALSE);
+ s = g_variant_print (variant, FALSE);
+ g_print ("%s\n", s);
+ g_free (s);
g_variant_unref (variant);
}