]> git.proxmox.com Git - mirror_qemu.git/commit
test-bdrv-drain: Test BlockDriver callbacks for drain
authorKevin Wolf <kwolf@redhat.com>
Tue, 5 Dec 2017 13:05:02 +0000 (14:05 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Dec 2017 14:03:41 +0000 (15:03 +0100)
commit881cfd17c734634de0f4bc6725940cca4fd314c9
tree057198a548daf3d972e5afda5a8a0df612f4b259
parent2da9b7d456278bccc6ce889ae350f2867155d7e8
test-bdrv-drain: Test BlockDriver callbacks for drain

This adds a test case that the BlockDriver callbacks for drain are
called in bdrv_drained_all_begin/end(), and that both of them are called
exactly once.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/Makefile.include
tests/test-bdrv-drain.c [new file with mode: 0644]