]> git.proxmox.com Git - mirror_qemu.git/commit
qmp-test: Cover syntax and lexical errors
authorMarkus Armbruster <armbru@redhat.com>
Thu, 23 Aug 2018 16:39:33 +0000 (18:39 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 24 Aug 2018 18:26:37 +0000 (20:26 +0200)
commitaed877c53b5b8760b3fdb3605a212188c60f2eb3
tree852e96bdc65fe0ef631e6323806e024944fad4f1
parentd93bb9d5c34c1b4ed97bf824e6459b5516db94f6
qmp-test: Cover syntax and lexical errors

qmp-test neglects to cover QMP input that isn't valid JSON.  libqtest
doesn't let us send such input.  Add qtest_qmp_send_raw() for this
purpose, and put it to use in qmp-test.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180823164025.12553-7-armbru@redhat.com>
[Commit message typo fixed]
tests/libqtest.c
tests/libqtest.h
tests/qmp-test.c