OSDN Git Service

test-bdrv-drain: Test callback for bdrv_drain
authorKevin Wolf <kwolf@redhat.com>
Wed, 6 Dec 2017 17:13:53 +0000 (18:13 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Dec 2017 14:05:31 +0000 (15:05 +0100)
commit86e1c840ec1173badfe9f195a448c88072b2ad2a
tree9fbdc32480762defb8cc592c08bbb0b5e2b0e4db
parent7b6a3d35536f945c41aa62627cc295482606aa2e
test-bdrv-drain: Test callback for bdrv_drain

The existing test is for bdrv_drain_all_begin/end() only. Generalise the
test case so that it can be run for the other variants as well. At the
moment this is only bdrv_drain_begin/end(), but in a while, we'll add
another one.

Also, add a backing file to the test node to test whether the operations
work recursively.

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