mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
tests: Add parameter to qtest_init_without_qmp_handshake
Allow callers to choose whether to allow OOB support during a test; for now, all existing callers pass false, but the next patch will add a new caller. Also, rewrite the monitor setup to be generic (using the -qmp shorthand is insufficient for honoring the parameter). Based on an idea by Peter Xu, in <20180326063901.27425-8-peterx@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20180327013620.1644387-4-eblake@redhat.com> Tested-by: Christian Borntraeger <borntraeger@de.ibm.com> Acked-by: Peter Xu <peterx@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
be933ffc23
commit
ddee57e017
3 changed files with 12 additions and 7 deletions
|
@ -81,7 +81,7 @@ static void test_qmp_protocol(void)
|
|||
QList *capabilities;
|
||||
QTestState *qts;
|
||||
|
||||
qts = qtest_init_without_qmp_handshake(common_args);
|
||||
qts = qtest_init_without_qmp_handshake(false, common_args);
|
||||
|
||||
/* Test greeting */
|
||||
resp = qtest_qmp_receive(qts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue