check-qjson: Test errors from qobject_from_json()
commitaec4b054ea36c53c8b887da99f20010133b84378
authorMarkus Armbruster <armbru@redhat.com>
Tue, 28 Feb 2017 21:27:00 +0000 (28 22:27 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 7 Mar 2017 15:07:47 +0000 (7 16:07 +0100)
tree634b7d7c965fca9a28a43e6f088c91d1d8c737f5
parent5577fff73822c91efd827dde33b8513a5e03ee8d
check-qjson: Test errors from qobject_from_json()

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 <armbru@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <1488317230-26248-15-git-send-email-armbru@redhat.com>
tests/check-qjson.c