summaryrefslogtreecommitdiffstats
path: root/tests/qtest/ahci-test.c
diff options
context:
space:
mode:
authorMaxim Levitsky2020-10-06 14:38:52 +0200
committerPaolo Bonzini2020-10-12 17:50:24 +0200
commit1c3e2a38de4e3094dfaf1e4dd73b1e5a91df8fe9 (patch)
tree43c174b151e2af0e9fa1692bc54619f19a4c0e3f /tests/qtest/ahci-test.c
parentmeson.build: Re-enable KVM support for MIPS (diff)
downloadqemu-1c3e2a38de4e3094dfaf1e4dd73b1e5a91df8fe9.tar.gz
qemu-1c3e2a38de4e3094dfaf1e4dd73b1e5a91df8fe9.tar.xz
qemu-1c3e2a38de4e3094dfaf1e4dd73b1e5a91df8fe9.zip
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/ahci-test.c')
-rw-r--r--tests/qtest/ahci-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qtest/ahci-test.c b/tests/qtest/ahci-test.c
index 5e1954852e..d42ebaeb4c 100644
--- a/tests/qtest/ahci-test.c
+++ b/tests/qtest/ahci-test.c
@@ -1590,7 +1590,7 @@ static void test_atapi_tray(void)
qtest_qmp_send(ahci->parent->qts, "{'execute': 'blockdev-open-tray', "
"'arguments': {'id': 'cd0'}}");
atapi_wait_tray(ahci, true);
- rsp = qtest_qmp_receive(ahci->parent->qts);
+ rsp = qtest_qmp_receive_dict(ahci->parent->qts);
qobject_unref(rsp);
qmp_discard_response(ahci->parent->qts,
@@ -1620,7 +1620,7 @@ static void test_atapi_tray(void)
qtest_qmp_send(ahci->parent->qts, "{'execute': 'blockdev-close-tray', "
"'arguments': {'id': 'cd0'}}");
atapi_wait_tray(ahci, false);
- rsp = qtest_qmp_receive(ahci->parent->qts);
+ rsp = qtest_qmp_receive_dict(ahci->parent->qts);
qobject_unref(rsp);
/* Now, to convince ATAPI we understand the media has changed... */