]> git.ipfire.org Git - thirdparty/qemu.git/commit
test-qobject-output-visitor: Wean off UserDefListUnion
authorMarkus Armbruster <armbru@redhat.com>
Fri, 17 Sep 2021 14:31:24 +0000 (16:31 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 27 Sep 2021 06:23:25 +0000 (08:23 +0200)
commit00e6832f419529645f45f93ccccb3778d51e9d0a
tree77c4aa5b113ba2416d789572c1b47cff79de5151
parente7a76fe25aa0b2856f6b86ad15ffe974b8727bdb
test-qobject-output-visitor: Wean off UserDefListUnion

The test_visitor_out_list_union_FOO() use simple union
UserDefListUnion to cover lists of builtin types.  Rewrite as
test_visitor_out_list_struct(), using struct ArrayStruct and a lot
less code.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210917143134.412106-14-armbru@redhat.com>
tests/unit/test-qobject-output-visitor.c