]> git.proxmox.com Git - qemu.git/commit
libqtest: add qmp(fmt, ...) -> QDict* function
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 30 Oct 2013 13:54:33 +0000 (14:54 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 7 Nov 2013 12:58:53 +0000 (13:58 +0100)
commit0c460dac03e7919079525d8e24ef2c4c607c219d
treec3c0aea2eb9fb82e6624a149604116f93983cdbc
parent0d1aa05e9eba2437fdcdfbaa846c850c986bf7c6
libqtest: add qmp(fmt, ...) -> QDict* function

Add a qtest qmp() function that returns the response object.  This
allows test cases to verify the result or to check for error responses.
It also allows waiting for QMP events.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
tests/libqtest.c
tests/libqtest.h