tests: Don't check qobject_type() before qobject_to_qint()
commit0abfc4b885566eb41c3a4e1de5e2e105bdc062d9
authorMarkus Armbruster <armbru@redhat.com>
Fri, 17 Feb 2017 20:38:21 +0000 (17 21:38 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 22 Feb 2017 18:52:09 +0000 (22 19:52 +0100)
tree78148f230b948ffb4530620290e30d8e06aaf712
parent363e13f86eb60bce1e112a35a4c107505a69c9fe
tests: Don't check qobject_type() before qobject_to_qint()

qobject_to_qint(obj) returns NULL when obj isn't a QInt.  Check
that instead of qobject_type(obj) == QTYPE_QINT.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1487363905-9480-11-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/check-qjson.c
tests/test-qobject-output-visitor.c