diff options
author | John Snow <jsnow@redhat.com> | 2015-04-17 19:50:06 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-04-28 15:36:11 +0200 |
commit | 7898f74e78a5900fc079868e255b65d807fa8a8f (patch) | |
tree | 98cc9498b00bb5d7f9e39a920bac55803fb11e85 /blockjob.c | |
parent | 9f7264f57c8307bca32e78427348b8b323d5db21 (diff) | |
download | qemu-7898f74e78a5900fc079868e255b65d807fa8a8f.zip qemu-7898f74e78a5900fc079868e255b65d807fa8a8f.tar.gz qemu-7898f74e78a5900fc079868e255b65d807fa8a8f.tar.bz2 |
iotests: add QMP event waiting queue
A filter is added to allow callers to request very specific
events to be pulled from the event queue, while leaving undesired
events still in the stream.
This allows us to poll for completion data for multiple asynchronous
events in any arbitrary order.
A new timeout context is added to the qmp pull_event method's
wait parameter to allow tests to fail if they do not complete
within some expected period of time.
Also fixed is a bug in qmp.pull_event where we try to retrieve an event
from an empty list if we attempt to retrieve an event with wait=False
but no events have occurred.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1429314609-29776-19-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockjob.c')
0 files changed, 0 insertions, 0 deletions