Re: [Qemu-devel] [RFC v5 26/26] tests: qmp-test: add oob test

2017-12-18 Thread Stefan Hajnoczi
On Mon, Dec 18, 2017 at 05:51:45PM +0800, Peter Xu wrote: > On Thu, Dec 14, 2017 at 02:47:12PM +, Stefan Hajnoczi wrote: > > On Tue, Dec 05, 2017 at 01:52:00PM +0800, Peter Xu wrote: > > > +/* Try a fake capability, it should fail. */ > > > +resp = qmp("{ 'execute': 'qmp_capabilities',

Re: [Qemu-devel] [RFC v5 26/26] tests: qmp-test: add oob test

2017-12-18 Thread Peter Xu
On Thu, Dec 14, 2017 at 02:47:12PM +, Stefan Hajnoczi wrote: > On Tue, Dec 05, 2017 at 01:52:00PM +0800, Peter Xu wrote: > > +/* Try a fake capability, it should fail. */ > > +resp = qmp("{ 'execute': 'qmp_capabilities', " > > + " 'arguments': { 'enable': [ 'cap-does-not-

Re: [Qemu-devel] [RFC v5 26/26] tests: qmp-test: add oob test

2017-12-14 Thread Stefan Hajnoczi
On Tue, Dec 05, 2017 at 01:52:00PM +0800, Peter Xu wrote: > +/* Try a fake capability, it should fail. */ > +resp = qmp("{ 'execute': 'qmp_capabilities', " > + " 'arguments': { 'enable': [ 'cap-does-not-exist' ] } }"); > +g_assert(qdict_haskey(resp, "error")); Missing QD