Markus Armbruster 8fba2f737a tests/qapi-schema: Improve union discriminator coverage
A union's 'discriminator' must name one of the common members.
QAPISchemaVariants.check() looks it up by its c_name(), then checks
the name matches exactly (because c_name() is not injective).

Tests union-base-empty and union-invalid-discriminator both cover the
case where lookup fails.  Repurpose the latter to cover the case where
it succeeds and the name check fails.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20230316071325.492471-10-armbru@redhat.com
Reviewed-by: Eric Blake <eblake@redhat.com>
[Commit message typo fixed]
2023-04-24 15:21:39 +02:00
..
2020-08-03 08:28:08 +02:00
2019-10-22 09:26:12 +02:00
2019-10-22 09:26:12 +02:00
2019-10-22 09:26:12 +02:00
2019-10-22 09:26:12 +02:00
2019-10-22 09:26:12 +02:00
2015-05-05 18:39:01 +02:00
2015-05-05 18:39:01 +02:00
2019-10-22 09:26:12 +02:00
2015-05-05 18:39:01 +02:00
2019-10-22 09:26:12 +02:00
2017-01-16 10:10:35 +01:00
2017-01-16 10:10:35 +01:00
2017-01-16 10:10:35 +01:00
2017-01-16 10:10:35 +01:00
2017-01-16 10:10:35 +01:00
2019-10-22 09:26:12 +02:00
2015-05-05 18:39:01 +02:00
2019-10-22 09:26:12 +02:00
2019-10-22 09:26:12 +02:00
2019-10-22 09:26:12 +02:00
2020-08-03 08:28:08 +02:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-03-23 22:31:05 +01:00
2021-09-27 08:23:25 +02:00