OSDN Git Service

tests/libqos: Make generic virtio code independent from global_qtest
authorThomas Huth <thuth@redhat.com>
Sat, 18 May 2019 08:23:24 +0000 (10:23 +0200)
committerThomas Huth <thuth@redhat.com>
Thu, 15 Aug 2019 17:23:59 +0000 (19:23 +0200)
commit1999a70a05ad603d1c76e0a7d230bcfed0d626ac
tree967aed417b9d954d6b7436dc19b2e22dfce8a3b4
parentca1ef1e62e581f61c40f8be49d222007739691c4
tests/libqos: Make generic virtio 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. Pass around a pointer to the QTestState instead.

Message-Id: <20190814195920.32023-1-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/libqos/virtio.c
tests/libqos/virtio.h
tests/virtio-9p-test.c
tests/virtio-blk-test.c
tests/virtio-net-test.c
tests/virtio-scsi-test.c