]> git.proxmox.com Git - mirror_qemu.git/commit
tests/libqtest: Make qtest_qmp_device_add/del independent from global_qtest
authorThomas Huth <thuth@redhat.com>
Mon, 22 Jul 2019 15:10:55 +0000 (17:10 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 15 Aug 2019 17:24:10 +0000 (19:24 +0200)
commite5758de4e836c3b2edc2befd904651fc6967d74f
tree324827884570aa10cb22024f8735e43178e3a947
parent17de4741296af8ed3361b14feda130a7d7102987
tests/libqtest: Make qtest_qmp_device_add/del independent from global_qtest

Generic library functions like qtest_qmp_device_add() and _del()
should not depend on the global_qtest variable. Pass the test
state via parameter instead.

Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20190813093047.27948-6-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
16 files changed:
tests/cpu-plug-test.c
tests/e1000e-test.c
tests/ivshmem-test.c
tests/libqos/usb.c
tests/libqos/usb.h
tests/libqtest.c
tests/libqtest.h
tests/usb-hcd-ohci-test.c
tests/usb-hcd-uhci-test.c
tests/usb-hcd-xhci-test.c
tests/virtio-blk-test.c
tests/virtio-ccw-test.c
tests/virtio-net-test.c
tests/virtio-rng-test.c
tests/virtio-scsi-test.c
tests/virtio-serial-test.c