diff options
| author | Markus Armbruster | 2017-03-15 13:57:25 +0100 |
|---|---|---|
| committer | Markus Armbruster | 2017-03-16 07:13:03 +0100 |
| commit | f641d06ad63773ae524fb073b2f8639e1db1462c (patch) | |
| tree | 263f3c00dd5bd52810818d6944eb2981b668398d /tests/qapi-schema/doc-bad-alternate-member.json | |
| parent | tests/qapi-schema: Rename doc-bad-args to doc-bad-command-arg (diff) | |
| download | qemu-f641d06ad63773ae524fb073b2f8639e1db1462c.tar.gz qemu-f641d06ad63773ae524fb073b2f8639e1db1462c.tar.xz qemu-f641d06ad63773ae524fb073b2f8639e1db1462c.zip | |
tests/qapi-schema: Improve coverage of bogus member docs
New test doc-bad-union-member.json shows we can fail to reject
documentation for nonexistent members.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1489582656-31133-37-git-send-email-armbru@redhat.com>
Diffstat (limited to 'tests/qapi-schema/doc-bad-alternate-member.json')
| -rw-r--r-- | tests/qapi-schema/doc-bad-alternate-member.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/qapi-schema/doc-bad-alternate-member.json b/tests/qapi-schema/doc-bad-alternate-member.json new file mode 100644 index 0000000000..738635ca8f --- /dev/null +++ b/tests/qapi-schema/doc-bad-alternate-member.json @@ -0,0 +1,9 @@ +# Arguments listed in the doc comment must exist in the actual schema + +## +# @AorB: +# @aa: a +# @bb: b +## +{ 'alternate': 'AorB', + 'data': { 'a': 'str', 'b': 'int' } } |
