]> git.proxmox.com Git - mirror_qemu.git/commit
tests/libqos: Make virtio-pci code independent from global_qtest
authorThomas Huth <thuth@redhat.com>
Thu, 18 Jul 2019 15:08:51 +0000 (17:08 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 15 Aug 2019 17:24:10 +0000 (19:24 +0200)
commit2380d31e19ee32e6466c7724ab72ae9d2fa2db96
tree27e207bcf2a29446fb76004cb4002998907b31ae
parent1999a70a05ad603d1c76e0a7d230bcfed0d626ac
tests/libqos: Make virtio-pci code independent from global_qtest

The libqos library functions should never depend on global_qtest,
since these functions might be used in tests that track multiple
test states. So let's use the test state of the QPCIDevice instead.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190813093047.27948-3-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/libqos/virtio-pci.c