qemu-iotests: Test unplug of -device without drive
commit208c38e4e4a5e808b5720329f3633f4ab2bc5026
authorKevin Wolf <kwolf@redhat.com>
Wed, 12 Jul 2017 11:53:03 +0000 (12 13:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 18 Jul 2017 13:14:36 +0000 (18 15:14 +0200)
tree4ce7e4487a748b7c09b18f4b4c8caa3f1a9f075b
parente1824e585f54426bd6b035221bf85f90893dc653
qemu-iotests: Test unplug of -device without drive

This caused an assertion failure until recently because the BlockBackend
would be detached on unplug, but was in fact never attached in the first
place. Add a regression test.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
tests/qemu-iotests/067
tests/qemu-iotests/067.out