tests/qapi-schema: Demonstrate bad reporting of funny characters

Invalid name 'not\\possible' is reported as 'not\possible'.  Control
characters (quoted or not) are even more confusing.  Mark FIXME.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20190913201349.24332-6-armbru@redhat.com>
master
Markus Armbruster 2019-09-13 22:13:38 +02:00
parent e24fe238e2
commit 05d6ecd049
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
tests/qapi-schema/enum-bad-name.json:2: Member of enum 'MyEnum' uses invalid name 'not^possible'
tests/qapi-schema/enum-bad-name.json:3: Member of enum 'MyEnum' uses invalid name 'not\possible'

View File

@ -1,2 +1,3 @@
# we ensure all enum names can map to C
{ 'enum': 'MyEnum', 'data': [ 'not^possible' ] }
# FIXME reports 'not\possible' instead of 'not\\possible'
{ 'enum': 'MyEnum', 'data': [ 'not\\possible' ] }