mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
tests/qapi-schema: Cover duplicate 'Features:' line
We don't actually recognize the second 'Features:' line. Instead, we treat it as an untagged section. If it was followed by feature description, we'd reject that like "description of '@feat2:' follows a section". Less than clear. To be improved shortly. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240216145841.2099240-3-armbru@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
976474fdb2
commit
fc68b9ffc9
4 changed files with 34 additions and 0 deletions
11
tests/qapi-schema/doc-duplicate-features.json
Normal file
11
tests/qapi-schema/doc-duplicate-features.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Duplicate 'Features:' line
|
||||
|
||||
##
|
||||
# @foo:
|
||||
#
|
||||
# Features:
|
||||
# @feat: mumble
|
||||
#
|
||||
# Features:
|
||||
##
|
||||
{ 'command': 'foo', 'features': ['feat'] }
|
Loading…
Add table
Add a link
Reference in a new issue