mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 22:33:36 +08:00
dec0012ef8
Commit 87adbbffd4..3e270dcacc "qapi: Add 'if' to (implicit struct|union|alternate) members" (v4.0.0) neglected test coverage, and promptly failed to check the conditions. Review fail. Recent commit "tests/qapi-schema: Demonstrate insufficient 'if' checking" added test coverage, demonstrating the bug. Fix it by add the missing check_if(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190914153506.2151-13-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
4 lines
109 B
JSON
4 lines
109 B
JSON
# Cover member with invalid 'if'
|
|
{ 'struct': 'Stru',
|
|
'data': { 'member': { 'type': 'int', 'if': true } } }
|