aboutsummaryrefslogtreecommitdiff
path: root/tests/qmp-test.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2018-07-03 10:53:32 +0200
committerMarkus Armbruster <armbru@redhat.com>2018-07-03 23:18:56 +0200
commit2970b4461f5f0dd0798774618713aadd457e8d48 (patch)
tree3994f1dcdb16aba88e7a49e8dccc4cff02274e5f /tests/qmp-test.c
parent97ca0712c8f2b65479649693ffe01e7358418955 (diff)
tests/qmp-test: Test in-band command doesn't overtake
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20180703085358.13941-7-armbru@redhat.com>
Diffstat (limited to 'tests/qmp-test.c')
-rw-r--r--tests/qmp-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qmp-test.c b/tests/qmp-test.c
index 467b694aa2..c9d01b87ca 100644
--- a/tests/qmp-test.c
+++ b/tests/qmp-test.c
@@ -238,10 +238,12 @@ static void test_qmp_oob(void)
/* OOB command overtakes slow in-band command */
setup_blocking_cmd();
send_cmd_that_blocks(qts, "ib-blocks-1");
+ qtest_async_qmp(qts, "{ 'execute': 'query-name', 'id': 'ib-quick-1' }");
send_oob_cmd_that_fails(qts, "oob-1");
recv_cmd_id(qts, "oob-1");
unblock_blocked_cmd();
recv_cmd_id(qts, "ib-blocks-1");
+ recv_cmd_id(qts, "ib-quick-1");
cleanup_blocking_cmd();
qtest_quit(qts);