tests: Simplify abstract-interfaces check with a helper
commitdbb2a604a94f3899fa34bd1ede462f213e822e03
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 7 Jul 2017 12:22:13 +0000 (7 09:22 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 17 Jul 2017 18:41:30 +0000 (17 15:41 -0300)
tree923696b1d5d92bb4e108e4fa4b999d0a8be12839
parent53f9a6f45fb214540cb40af45efc11ac40ac454c
tests: Simplify abstract-interfaces check with a helper

Add a new type_list_find() helper to device-introspect-test.c, to
simplify the code at test_abstract_interfaces().

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20170707122215.8819-2-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
tests/device-introspect-test.c