summaryrefslogtreecommitdiffstats
path: root/tests/test-qobject-input-visitor.c
diff options
context:
space:
mode:
authorThomas Huth2019-09-03 08:18:46 +0200
committerThomas Huth2019-09-05 13:18:52 +0200
commitb57ebd57b43db5456b850a81a2ef46b03b8716ca (patch)
tree3b17a6ee9613f599a0ebff783c58ae6dda6ca730 /tests/test-qobject-input-visitor.c
parenttests/libqos/e1000e: Make e1000e libqos functions independent from global_qtest (diff)
downloadqemu-b57ebd57b43db5456b850a81a2ef46b03b8716ca.tar.gz
qemu-b57ebd57b43db5456b850a81a2ef46b03b8716ca.tar.xz
qemu-b57ebd57b43db5456b850a81a2ef46b03b8716ca.zip
tests/libqos: Replace clock_step with qtest_clock_step in virtio code
Library functions should not rely on functions that require global_qtest (since they might get used in tests that deal with multiple states). Commit 1999a70a05ad603d ("Make generic virtio code independent from global_qtest") already tried to clean the libqos virtio code, but I missed to replace the clock_step() function. Thus change it now to qtest_clock_step() instead. The logic of the qvirtio_wait_config_isr() function is now pushed to the virtio-mmio.c and virtio-pci.c files instead, since we can get the QTestState here easily. Message-Id: <20190904130047.25808-4-thuth@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/test-qobject-input-visitor.c')
0 files changed, 0 insertions, 0 deletions