tests/qapi-schema: Improve doc / expression mismatch coverage
commit2028be8eeaa5334ce63fbf625942c6d52c6dac28
authorMarkus Armbruster <armbru@redhat.com>
Wed, 15 Mar 2017 12:57:19 +0000 (15 13:57 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 16 Mar 2017 06:13:03 +0000 (16 07:13 +0100)
tree8c332ec00940c25cf07455cae2b0e2d532678582
parent75b50196d9eee43f0b7d006455b9735ea5c3c333
tests/qapi-schema: Improve doc / expression mismatch coverage

New tests doc-before-include.json and doc-before-pragma.json show we
fail to reject a misplaced expression comment.

New test doc-no-symbol.json shows a bad error message.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <1489582656-31133-31-git-send-email-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
13 files changed:
tests/Makefile.include
tests/qapi-schema/doc-before-include.err [new file with mode: 0644]
tests/qapi-schema/doc-before-include.exit [new file with mode: 0644]
tests/qapi-schema/doc-before-include.json [new file with mode: 0644]
tests/qapi-schema/doc-before-include.out [new file with mode: 0644]
tests/qapi-schema/doc-before-pragma.err [new file with mode: 0644]
tests/qapi-schema/doc-before-pragma.exit [new file with mode: 0644]
tests/qapi-schema/doc-before-pragma.json [new file with mode: 0644]
tests/qapi-schema/doc-before-pragma.out [new file with mode: 0644]
tests/qapi-schema/doc-no-symbol.err [new file with mode: 0644]
tests/qapi-schema/doc-no-symbol.exit [new file with mode: 0644]
tests/qapi-schema/doc-no-symbol.json [new file with mode: 0644]
tests/qapi-schema/doc-no-symbol.out [new file with mode: 0644]