summaryrefslogtreecommitdiffstats
path: root/tests/virtio-serial-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/virtio-serial-test.c')
-rw-r--r--tests/virtio-serial-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/virtio-serial-test.c b/tests/virtio-serial-test.c
index 066ca61280..e584ad76e8 100644
--- a/tests/virtio-serial-test.c
+++ b/tests/virtio-serial-test.c
@@ -20,8 +20,8 @@ static void virtio_serial_nop(void *obj, void *data, QGuestAllocator *alloc)
static void serial_hotplug(void *obj, void *data, QGuestAllocator *alloc)
{
- qtest_qmp_device_add("virtserialport", "hp-port", "{}");
- qtest_qmp_device_del("hp-port");
+ qtest_qmp_device_add(global_qtest, "virtserialport", "hp-port", "{}");
+ qtest_qmp_device_del(global_qtest, "hp-port");
}
static void register_virtio_serial_test(void)