tests: adjust test-aio to new aio_poll() semantics
commit24d1a6d9d5f5b3da868724dd3c6f56893e0693da
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 17 Apr 2013 09:01:02 +0000 (17 11:01 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 19 Aug 2013 13:45:34 +0000 (19 15:45 +0200)
treedc267666ef1208f9a2e82198c15e9fd8dba499a8
parentbf0da4df83e8af7ec02e3809f3dd30cc0a42e4bc
tests: adjust test-aio to new aio_poll() semantics

aio_poll(ctx, true) will soon block if any fd handlers have been set.
Previously it would only block when .io_flush() returned true.

This means that callers must check their wait condition *before*
aio_poll() to avoid deadlock.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
tests/test-aio.c