diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-10-30 14:54:32 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-11-07 13:58:43 +0100 |
commit | 0d1aa05e9eba2437fdcdfbaa846c850c986bf7c6 (patch) | |
tree | f3e288737dd2885353c75b1d5ead6a49cccdc530 /tests/boot-order-test.c | |
parent | ec9c10d29c6bb5613a680af62f5825d3bb2d31d4 (diff) | |
download | qemu-0d1aa05e9eba2437fdcdfbaa846c850c986bf7c6.tar.gz qemu-0d1aa05e9eba2437fdcdfbaa846c850c986bf7c6.tar.bz2 qemu-0d1aa05e9eba2437fdcdfbaa846c850c986bf7c6.zip |
libqtest: rename qmp() to qmp_discard_response()
Existing qmp() callers do not expect a response object. In order to
implement real QMP test cases it will be necessary to inspect the
response object.
Rename qmp() to qmp_discard_response(). Later patches will introduce a
qmp() function that returns the response object and tests that use it.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'tests/boot-order-test.c')
-rw-r--r-- | tests/boot-order-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/boot-order-test.c b/tests/boot-order-test.c index 4b233d0b24..da158c32bd 100644 --- a/tests/boot-order-test.c +++ b/tests/boot-order-test.c @@ -41,12 +41,12 @@ static void test_a_boot_order(const char *machine, qtest_start(args); actual = read_boot_order(); g_assert_cmphex(actual, ==, expected_boot); - qmp("{ 'execute': 'system_reset' }"); + qmp_discard_response("{ 'execute': 'system_reset' }"); /* * system_reset only requests reset. We get a RESET event after * the actual reset completes. Need to wait for that. */ - qmp(""); /* HACK: wait for event */ + qmp_discard_response(""); /* HACK: wait for event */ actual = read_boot_order(); g_assert_cmphex(actual, ==, expected_reboot); qtest_quit(global_qtest); |