Re: [Qemu-devel] [PATCH 12/14] tests: Don't check qobject_type() before qobject_to_qbool()

2017-02-21 Thread Eric Blake
On 02/17/2017 02:38 PM, Markus Armbruster wrote: > qobject_to_qbool(obj) returns NULL when obj isn't a QBool. Check > that instead of qobject_type(obj) == QTYPE_QBOOL. > > Signed-off-by: Markus Armbruster > --- > tests/check-qjson.c | 24

[Qemu-devel] [PATCH 12/14] tests: Don't check qobject_type() before qobject_to_qbool()

2017-02-17 Thread Markus Armbruster
qobject_to_qbool(obj) returns NULL when obj isn't a QBool. Check that instead of qobject_type(obj) == QTYPE_QBOOL. Signed-off-by: Markus Armbruster --- tests/check-qjson.c | 24 ++-- tests/test-qobject-output-visitor.c | 12 +--- 2