summaryrefslogtreecommitdiffstats
path: root/tests/qapi-schema/args-array-empty.json
diff options
context:
space:
mode:
authorMarkus Armbruster2018-08-06 08:53:38 +0200
committerMarkus Armbruster2018-08-16 08:42:06 +0200
commit4399596b152f6c933a173b0e97ba4e3b6a57458f (patch)
tree5b410f9988f43cf3478cf270c29eb2f8d3533d27 /tests/qapi-schema/args-array-empty.json
parenttests: New helper qtest_qmp_receive_success() (diff)
downloadqemu-4399596b152f6c933a173b0e97ba4e3b6a57458f.tar.gz
qemu-4399596b152f6c933a173b0e97ba4e3b6a57458f.tar.xz
qemu-4399596b152f6c933a173b0e97ba4e3b6a57458f.zip
migration-test: Make wait_command() cope with '%'
wait_command() passes its argument @command to qtest_qmp_send(). Falls apart if @command contain '%'. Two ways to disarm this trap: suppress interpretation of '%' by passing @command as argument to format string "%s", or fix it by having wait_command() take the variable arguments to go with @command. Do the latter. This is another step towards compile-time format string checking without triggering -Wformat-nonliteral. Cc: Juan Quintela <quintela@redhat.com> Cc: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20180806065344.7103-18-armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/args-array-empty.json')
0 files changed, 0 insertions, 0 deletions