aboutsummaryrefslogtreecommitdiff
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/virtio-serial-test.c b/tests/virtio-serial-test.c
index 7cc7060..8da9980 100644
--- a/tests/virtio-serial-test.c
+++ b/tests/virtio-serial-test.c
@@ -18,7 +18,7 @@ static void virtio_serial_nop(void)
static void hotplug(void)
{
- qtest_qmp_device_add("virtserialport", "hp-port", NULL);
+ qtest_qmp_device_add("virtserialport", "hp-port", "{}");
qtest_qmp_device_del("hp-port");
}
@@ -31,8 +31,8 @@ int main(int argc, char **argv)
qtest_add_func("/virtio/serial/nop", virtio_serial_nop);
qtest_add_func("/virtio/serial/hotplug", hotplug);
- global_qtest = qtest_startf("-device virtio-serial-%s",
- qvirtio_get_dev_type());
+ global_qtest = qtest_initf("-device virtio-serial-%s",
+ qvirtio_get_dev_type());
ret = g_test_run();
qtest_end();