commit | cd17ba51f5b25196c52afe5dfdd27c7dc8621cf4 | [log] [tgz] |
---|---|---|
author | Markus Armbruster <armbru@redhat.com> | Fri Feb 17 21:38:19 2017 +0100 |
committer | Markus Armbruster <armbru@redhat.com> | Wed Feb 22 19:52:04 2017 +0100 |
tree | 7ce3627269395604b384f8aede7ffaf57a7ec203 | |
parent | ca6b6e1e68ac44b2e8895da10dd1c80dc03d08b7 [diff] |
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>