aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/test-crypto-block.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2021-09-17 16:31:23 +0200
committerMarkus Armbruster <armbru@redhat.com>2021-09-27 08:23:25 +0200
commite7a76fe25aa0b2856f6b86ad15ffe974b8727bdb (patch)
treef3304880ebebdd18ff6cb2e13f942b6b25b2079d /tests/unit/test-crypto-block.c
parentdffd8ff9e6ab7efff941966ecc5d0b9a65f61e51 (diff)
downloadqemu-e7a76fe25aa0b2856f6b86ad15ffe974b8727bdb.zip
qemu-e7a76fe25aa0b2856f6b86ad15ffe974b8727bdb.tar.gz
qemu-e7a76fe25aa0b2856f6b86ad15ffe974b8727bdb.tar.bz2
test-qobject-input-visitor: Wean off UserDefListUnion
The test_visitor_in_list_union_FOO() use simple union UserDefListUnion to cover lists of builtin types. Rewrite as test_visitor_in_list_struct(), using struct ArrayStruct and a lot less code. test_visitor_in_fail_union_list() uses UserDefListUnion to cover "variant members don't match the discriminator value". Cover that in test_visitor_in_fail_union_flat() instead, and drop test_visitor_in_fail_union_list(). Appropriating the former for this purpose is okay, because it actually failed due to missing discriminator, which is still covered by test_visitor_in_fail_union_flat_no_discrim(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20210917143134.412106-13-armbru@redhat.com>
Diffstat (limited to 'tests/unit/test-crypto-block.c')
0 files changed, 0 insertions, 0 deletions