tests/qmp-cmd-test: Use qtest_init() instead of qtest_start()
commitda9cd2d06cd28fccf09d2e22361a19f9ce6ffc71
authorThomas Huth <thuth@redhat.com>
Tue, 9 Apr 2019 08:52:43 +0000 (9 10:52 +0200)
committerThomas Huth <thuth@redhat.com>
Wed, 8 May 2019 14:59:28 +0000 (8 16:59 +0200)
tree7225b8d280106ef8522e6eb0b883267a5692d1f5
parent2756f82af412c6a0a06030e8ff8df0861d639c7a
tests/qmp-cmd-test: Use qtest_init() instead of qtest_start()

qtest_start() + qtest_end() should be avoided, since they use the
global_qtest variable that we want to get rid of in the long run
(since global_qtest can not be used in tests that have to track
multiple QEMU states, like migration tests). Use qtest_init() and
qtest_quit() instead.

Message-Id: <20190409085245.31548-4-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/qmp-cmd-test.c