aboutsummaryrefslogtreecommitdiff
path: root/tests/qtest/pvpanic-test.c
diff options
context:
space:
mode:
authorMaxim Levitsky <mlevitsk@redhat.com>2020-10-06 14:38:52 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-10-12 11:50:24 -0400
commit1c3e2a38de4e3094dfaf1e4dd73b1e5a91df8fe9 (patch)
tree43c174b151e2af0e9fa1692bc54619f19a4c0e3f /tests/qtest/pvpanic-test.c
parentfbc5884ce2774232ea5a1a7d9b4e605aefc16a2b (diff)
qtest: rename qtest_qmp_receive to qtest_qmp_receive_dict
In the next patch a new version of qtest_qmp_receive will be reintroduced that will buffer received qmp events for later consumption in qtest_qmp_eventwait_ref No functional change intended. Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/qtest/pvpanic-test.c')
-rw-r--r--tests/qtest/pvpanic-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/pvpanic-test.c b/tests/qtest/pvpanic-test.c
index e57639481e..b0b20ad340 100644
--- a/tests/qtest/pvpanic-test.c
+++ b/tests/qtest/pvpanic-test.c
@@ -24,7 +24,7 @@ static void test_panic(void)
qtest_outb(qts, 0x505, 0x1);
- response = qtest_qmp_receive(qts);
+ response = qtest_qmp_receive_dict(qts);
g_assert(qdict_haskey(response, "event"));
g_assert_cmpstr(qdict_get_str(response, "event"), ==, "GUEST_PANICKED");
g_assert(qdict_haskey(response, "data"));