Re: [Qemu-block] [PATCH 14/24] check-qjson: Test errors from qobject_from_json()

2017-02-28 Thread Eric Blake
On 02/27/2017 05:20 AM, Markus Armbruster wrote: > Pass &error_abort with known-good input. Else pass &err and check > what comes back. This demonstrates that the parser fails silently for > many errors. > > Signed-off-by: Markus Armbruster > --- > tests/check-qjson.c | 88 > +

Re: [Qemu-block] [PATCH 14/24] check-qjson: Test errors from qobject_from_json()

2017-02-28 Thread Kevin Wolf
Am 27.02.2017 um 12:20 hat Markus Armbruster geschrieben: > Pass &error_abort with known-good input. Else pass &err and check > what comes back. This demonstrates that the parser fails silently for > many errors. > > Signed-off-by: Markus Armbruster Reviewed-by: Kevin Wolf

[Qemu-block] [PATCH 14/24] check-qjson: Test errors from qobject_from_json()

2017-02-27 Thread Markus Armbruster
Pass &error_abort with known-good input. Else pass &err and check what comes back. This demonstrates that the parser fails silently for many errors. Signed-off-by: Markus Armbruster --- tests/check-qjson.c | 88 ++--- 1 file changed, 56 insertion