test-bdrv-drain: AIO_WAIT_WHILE() in job .commit/.abort
commitd49725af46a7710cde02cc120b7f1e485154b483
authorKevin Wolf <kwolf@redhat.com>
Thu, 13 Sep 2018 12:39:14 +0000 (13 14:39 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 25 Sep 2018 13:50:15 +0000 (25 15:50 +0200)
tree6bdb1ffe8c8fedf0df86e3891a35b29882f25741
parent644f3a29bd4974aefd46d2adb5062d86063c8a50
test-bdrv-drain: AIO_WAIT_WHILE() in job .commit/.abort

This adds tests for calling AIO_WAIT_WHILE() in the .commit and .abort
callbacks. Both reasons why .abort could be called for a single job are
tested: Either .run or .prepare could return an error.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
tests/test-bdrv-drain.c