diff options
author | Markus Armbruster | 2020-12-11 18:11:35 +0100 |
---|---|---|
committer | Markus Armbruster | 2020-12-19 10:38:43 +0100 |
commit | 6589f4599151201a61d6b1be8450adb63ae81017 (patch) | |
tree | 2f9cb1fb248871d6672fe788bec6bb5da1339f5c /tests | |
parent | monitor: Use GString instead of QString for output buffer (diff) | |
download | qemu-6589f4599151201a61d6b1be8450adb63ae81017.tar.gz qemu-6589f4599151201a61d6b1be8450adb63ae81017.tar.xz qemu-6589f4599151201a61d6b1be8450adb63ae81017.zip |
qobject: Make qobject_to_json_pretty() take a pretty argument
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201211171152.146877-4-armbru@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/qtest/libqtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c index e49f3a1e45..213fa4f8fe 100644 --- a/tests/qtest/libqtest.c +++ b/tests/qtest/libqtest.c @@ -1197,7 +1197,7 @@ void qtest_qmp_assert_success(QTestState *qts, const char *fmt, ...) g_assert(response); if (!qdict_haskey(response, "return")) { - QString *s = qobject_to_json_pretty(QOBJECT(response)); + QString *s = qobject_to_json_pretty(QOBJECT(response), true); g_test_message("%s", qstring_get_str(s)); qobject_unref(s); } |