On 03/13/2017 01:18 AM, Markus Armbruster wrote: > New test doc-bad-expr.json shows we fail to reject a misplaced > expression comment. > > New test doc-no-symbol.json shows a bad error message. > > Signed-off-by: Markus Armbruster <arm...@redhat.com> > ---
> +++ b/tests/qapi-schema/doc-bad-expr.json > @@ -0,0 +1,8 @@ > +# Doc comment separated from defining expression by non-defining expression > +# BUG: not rejected > + > +## > +# @foo: > +## > +{ 'include': 'empty.json' } > +{ 'struct': 'foo', 'data': {} } See my comments on 31/47 for an enhancement to this test that also sticks a { 'pragma': {} } there. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature