diff options
author | Thomas Huth | 2017-03-30 09:50:05 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert | 2017-04-26 15:42:31 +0200 |
commit | 6bb87be8938691fa5cf989b7517d7d2084b8c141 (patch) | |
tree | 1d828438e53ab425ca86cc8e7ed14d5635fa1f68 /tests/pc-cpu-test.c | |
parent | monitor: Check whether TCG is enabled before running the "info jit" code (diff) | |
download | qemu-6bb87be8938691fa5cf989b7517d7d2084b8c141.tar.gz qemu-6bb87be8938691fa5cf989b7517d7d2084b8c141.tar.xz qemu-6bb87be8938691fa5cf989b7517d7d2084b8c141.zip |
libqtest: Ignore QMP events when parsing the response for HMP commands
When running certain HMP commands (like "device_del") via QMP, we
can sometimes get a QMP event in the response first, so that the
"g_assert(ret)" statement in qtest_hmp() triggers and the test
fails. Fix this by ignoring such QMP events while looking for the
real return value from QMP.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1490860207-8302-2-git-send-email-thuth@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Added note to qtest_hmp/qtest_hmpv's header description to say
it discards events
Diffstat (limited to 'tests/pc-cpu-test.c')
0 files changed, 0 insertions, 0 deletions