OSDN Git Service

tests: qmp-test: add oob test
authorPeter Xu <peterx@redhat.com>
Fri, 9 Mar 2018 09:00:06 +0000 (17:00 +0800)
committerEric Blake <eblake@redhat.com>
Mon, 19 Mar 2018 19:58:37 +0000 (14:58 -0500)
commitd003f7a8f9cafe50119975844fa01afc2baf41fb
treeecede01f6466d8ae390e5ac7e31c5ccf6af73019
parent91ad45061af0fe44ac5dadb5bedaf4d7a08077c8
tests: qmp-test: add oob test

Test the new OOB capability.  Here we used the new "x-oob-test" command.
First, we send a lock=true and oob=false command to hang the main
thread.  Then send another lock=false and oob=true command (which will
be run inside parser this time) to free that hanged command.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180309090006.10018-24-peterx@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: grammar tweaks]
Signed-off-by: Eric Blake <eblake@redhat.com>
tests/qmp-test.c