]> git.proxmox.com Git - mirror_qemu.git/commit - tests/migration-test.c
tests: New helper qtest_qmp_receive_success()
authorMarkus Armbruster <armbru@redhat.com>
Mon, 6 Aug 2018 06:53:37 +0000 (08:53 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 16 Aug 2018 06:42:06 +0000 (08:42 +0200)
commit3cd46d42fe632b4732eca23b15b99d1b26ee6f2c
tree0e6477de2b947a5c0bbad140bd280f3881680461
parente14541652486080a7bb38057f024a18143d111ed
tests: New helper qtest_qmp_receive_success()

Commit b21373d0713 copied wait_command() from tests/migration-test.c
to tests/tpm-util.c.  Replace both copies by new libqtest helper
qtest_qmp_receive_success().  Also use it to simplify
qtest_qmp_device_del().

Bonus: gets rid of a non-literal format string.  A step towards
compile-time format string checking without triggering
-Wformat-nonliteral.

Cc: Thomas Huth <thuth@redhat.com>
Cc: Juan Quintela <quintela@redhat.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180806065344.7103-17-armbru@redhat.com>
tests/libqtest.c
tests/libqtest.h
tests/migration-test.c
tests/tpm-util.c