tests: qpci_unplug_acpi_device_test() should not rely on global_qtest
commit6ebb8d2a210f21c7d4f168564f812833320a8fc4
authorThomas Huth <thuth@redhat.com>
Tue, 9 Apr 2019 12:25:57 +0000 (9 14:25 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 8 May 2019 15:45:54 +0000 (8 17:45 +0200)
treefaaa3a01f71d576c78fed1f15c3f7075e96f86dc
parenta771729cdf450881cbe66261aea740ccbd02b8ff
tests: qpci_unplug_acpi_device_test() should not rely on global_qtest

libqos functions should not use functions that require global_qtest to
be set, since such library functions could also be used by tests that
deal with multiple test states. Add a parameter to this function to
explicitly specify the test state.

Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190508143209.24350-1-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/e1000e-test.c
tests/ivshmem-test.c
tests/libqos/pci-pc.c
tests/libqos/pci.h
tests/virtio-blk-test.c
tests/virtio-net-test.c
tests/virtio-rng-test.c