tests: use qtest_pc_boot()/qtest_shutdown() in virtio tests
commita980f7f2c2f4d7e9a1eba4f804cd66dbd458b6d4
authorLaurent Vivier <lvivier@redhat.com>
Mon, 17 Oct 2016 10:30:23 +0000 (17 12:30 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 27 Oct 2016 22:36:58 +0000 (28 09:36 +1100)
tree35784487e8711440578954fb5e7113686b2bf694
parent8b4b80c37630e976f2dd02a7d42bd9bea1ce676e
tests: use qtest_pc_boot()/qtest_shutdown() in virtio tests

This patch replaces calls to qtest_start() and qtest_end() by
calls to qtest_pc_boot() and qtest_shutdown().

This allows to initialize memory allocator and PCI interface
functions. This will ease to enable virtio tests on other
architectures by only adding a specific qtest_XXX_boot() (like
qtest_spapr_boot()).

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tests/virtio-9p-test.c
tests/virtio-blk-test.c
tests/virtio-net-test.c
tests/virtio-scsi-test.c