]> git.proxmox.com Git - mirror_qemu.git/commit - tests/qapi-schema/qapi-schema-test.out
tests/qapi-schema: Rewrite simple union TestIfUnion to be flat
authorMarkus Armbruster <armbru@redhat.com>
Fri, 17 Sep 2021 14:31:28 +0000 (16:31 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 27 Sep 2021 06:23:25 +0000 (08:23 +0200)
commit54501863376eff16973648523afeed76d4d28106
treedba8ab5d4c836d934b178bcf1953e0ef702dda7c
parentdef1d1f57188b6e5523042f3a6ae2ab61065d075
tests/qapi-schema: Rewrite simple union TestIfUnion to be flat

Simple unions predate flat unions.  Having both complicates the QAPI
schema language and the QAPI generator.  We haven't been using simple
unions in new code for a long time, because they are less flexible and
somewhat awkward on the wire.

To prepare for their removal, rewrite TestIfUnion to be flat.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210917143134.412106-18-armbru@redhat.com>
tests/qapi-schema/qapi-schema-test.json
tests/qapi-schema/qapi-schema-test.out