qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2 0/4] qapi: return 'missing parameter' error
@ 2016-09-21 20:10 Marc-André Lureau
  2016-09-21 20:10 ` [Qemu-devel] [PATCH v2 1/4] qapi: add assert about root value Marc-André Lureau
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Marc-André Lureau @ 2016-09-21 20:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: berto, eblake, armbru, Marc-André Lureau

Hi,

'monitor: use qmp_dispatch()' patch broke some iotests expecting a
'missing parameter' error. This series fixes qapi visitors to return
this error for all types.

v2:

- add some assert() for expected values in qmp-input-visitor, making
  it more explicit when qmp_input_get_object() may return NULL
- squash the *obj = NULL changes with the missing arg error patch
- move qobject_to_*(qobj) calls after checking qobj != NULL
- update commit messages

Marc-André Lureau (4):
  qapi: add assert about root value
  qapi: assert list entry has a value
  qapi: return a 'missing parameter' error
  iotests: fix expected error message

 qapi/qmp-input-visitor.c   | 76 +++++++++++++++++++++++++++++++++++-----------
 tests/qemu-iotests/087.out |  2 +-
 2 files changed, 60 insertions(+), 18 deletions(-)

-- 
2.10.0

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-09-22 12:59 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-21 20:10 [Qemu-devel] [PATCH v2 0/4] qapi: return 'missing parameter' error Marc-André Lureau
2016-09-21 20:10 ` [Qemu-devel] [PATCH v2 1/4] qapi: add assert about root value Marc-André Lureau
2016-09-21 21:05   ` Eric Blake
2016-09-21 20:10 ` [Qemu-devel] [PATCH v2 2/4] qapi: assert list entry has a value Marc-André Lureau
2016-09-21 21:06   ` Eric Blake
2016-09-21 20:10 ` [Qemu-devel] [PATCH v2 3/4] qapi: return a 'missing parameter' error Marc-André Lureau
2016-09-21 21:35   ` Eric Blake
2016-09-22  8:06   ` Daniel P. Berrange
2016-09-22 12:46   ` Markus Armbruster
2016-09-22 12:58     ` Marc-André Lureau
2016-09-21 20:10 ` [Qemu-devel] [PATCH v2 4/4] iotests: fix expected error message Marc-André Lureau
2016-09-21 21:33   ` Eric Blake
2016-09-21 21:44     ` Marc-André Lureau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).