]> git.proxmox.com Git - qemu.git/commit
blockdev-test: add test case for drive_add duplicate IDs
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 30 Oct 2013 13:54:34 +0000 (14:54 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 7 Nov 2013 12:58:58 +0000 (13:58 +0100)
commit7ceeedd016facf8d58e14a0d1417fa7225d71072
tree1573a83b68af23565ea6592a91945c707dfcba48
parent0c460dac03e7919079525d8e24ef2c4c607c219d
blockdev-test: add test case for drive_add duplicate IDs

The following should work:

  (qemu) drive_add if=none,id=drive0
  (qemu) drive_del drive0
  (qemu) drive_add if=none,id=drive0

Previous versions of QEMU produced a duplicate ID error because
drive_add leaked the options.

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