summaryrefslogtreecommitdiff
path: root/util/coroutine-win32.c
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2017-11-09 21:30:23 +0100
committerMax Reitz <mreitz@redhat.com>2017-11-14 18:06:25 +0100
commitbc11aee2acea2944d2cf685bf35956b860df49cd (patch)
treefbcbf5c53a123530af58b806177fdcfd8da80b63 /util/coroutine-win32.c
parent51c493c5cccdf767f53bc8829fa1a44ce05ffd02 (diff)
downloadqemu-bc11aee2acea2944d2cf685bf35956b860df49cd.tar.gz
iotests: Make 055 less flaky
First of all, test 055 does a valiant job of invoking pause_drive() sometimes, but that is worth nothing without blkdebug. So the first thing to do is to sprinkle a couple of "blkdebug::" in there -- with the exception of the transaction tests, because the blkdebug break points make the transaction QMP command hang (which is bad). In that case, we can get away with throttling the block job that it effectively is paused. Then, 055 usually does not pause the drive before starting a block job that should be cancelled. This means that the backup job might be completed already before block-job-cancel is invoked; thus making the test either fail (currently) or moot if cancel_and_wait() ignored this condition. Fix this by pausing the drive before starting the job. Signed-off-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20171109203025.27493-4-mreitz@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'util/coroutine-win32.c')
0 files changed, 0 insertions, 0 deletions