summaryrefslogtreecommitdiffstats
path: root/scripts/switch-timer-api
diff options
context:
space:
mode:
authorMarkus Armbruster2017-02-17 21:38:19 +0100
committerMarkus Armbruster2017-02-22 19:52:04 +0100
commitcd17ba51f5b25196c52afe5dfdd27c7dc8621cf4 (patch)
tree7ce3627269395604b384f8aede7ffaf57a7ec203 /scripts/switch-timer-api
parentDon't check qobject_type() before qobject_to_qdict() (diff)
downloadqemu-cd17ba51f5b25196c52afe5dfdd27c7dc8621cf4.tar.gz
qemu-cd17ba51f5b25196c52afe5dfdd27c7dc8621cf4.tar.xz
qemu-cd17ba51f5b25196c52afe5dfdd27c7dc8621cf4.zip
tests: Don't check qobject_type() before qobject_to_qlist()
qobject_to_qlist(obj) returns NULL when obj isn't a QList. Check that instead of qobject_type(obj) == QTYPE_QLIST. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1487363905-9480-9-git-send-email-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions