]> git.proxmox.com Git - mirror_qemu.git/commit
ivshmem-test: Drop dependence on global_qtest
authorEric Blake <eblake@redhat.com>
Mon, 11 Sep 2017 17:20:03 +0000 (12:20 -0500)
committerThomas Huth <thuth@redhat.com>
Mon, 17 Dec 2018 14:36:39 +0000 (15:36 +0100)
commit24c01ffa9d356eed4530e31f7ef93844b6599502
tree82b3a0006abce8fc485a1866ef5948e712d3217f
parentd786f782521fd2843394b498b4254a05cfd0e1d3
ivshmem-test: Drop dependence on global_qtest

Managing parallel connections to two different monitors via
the implicit global_qtest makes it hard to copy-and-paste code
to tests that are not aware of the implicit state.  Since we
have already fixed qpci to avoid global_qtest, we can now
simplify by not using global_qtest anywhere in ivshmem-test.

We can assert that the conversion is correct by checking that
global_qtest remains NULL throughout the test (a later patch
that changes global_qtest to not be a public global variable
will drop the assertions).

Signed-off-by: Eric Blake <eblake@redhat.com>
[thuth: Dropped the changes to test_ivshmem_hotplug() - will be fixed later]
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/ivshmem-test.c