tests: Clean up wait for event
authorMarkus Armbruster <armbru@redhat.com>
Mon, 11 Sep 2017 17:19:48 +0000 (12:19 -0500)
committerThomas Huth <thuth@redhat.com>
Wed, 14 Feb 2018 09:08:40 +0000 (10:08 +0100)
commit2c58c27beeba1a5be4bceeb283cbc90d4233a090
tree812da89e85c44a2967e2112b1f2a51fe3151fe92
parentbec9c64ef7be8063f1192608b83877bc5c9ea217
tests: Clean up wait for event

We still use hacks like qmp("") to wait for an event, even though we
have qmp_eventwait() since commit 8fe941f, and qmp_eventwait_ref()
since commit 7ffe312.  Both commits neglected to convert all the
existing hacks.  Make up what they missed.

Bonus: gets rid of empty format strings.  A step towards compile-time
format string checking without triggering -Wformat-zero-length.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
[thuth: dropped the hunks from the usb tests - not needed anymore]
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/boot-order-test.c
tests/libqos/pci-pc.c
tests/tco-test.c
tests/wdt_ib700-test.c