summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Armbruster2017-02-17 21:38:23 +0100
committerMarkus Armbruster2017-02-22 19:52:14 +0100
commitdfad9ec4e9f15344f300996ad8c6f3eaf699d195 (patch)
tree3c338dae06a4aab3f8fbc55dea74b5df6bc01cf2 /scripts
parenttests: Don't check qobject_type() before qobject_to_qfloat() (diff)
downloadqemu-dfad9ec4e9f15344f300996ad8c6f3eaf699d195.tar.gz
qemu-dfad9ec4e9f15344f300996ad8c6f3eaf699d195.tar.xz
qemu-dfad9ec4e9f15344f300996ad8c6f3eaf699d195.zip
tests: Don't check qobject_type() before qobject_to_qbool()
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 <armbru@redhat.com> Message-Id: <1487363905-9480-13-git-send-email-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions