Browse Source

tests/qapi-schema: Rename returns-whitelist to returns-bad-type

This test covers returning "bad" types.  Pragma returns-whitelist is
just one aspect.  Naming it returns-whitelist is suboptimal.  Rename
to returns-bad-type.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210323094025.3569441-19-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
pull/115/head
Markus Armbruster 5 years ago
parent
commit
ef8b3829f6
  1. 2
      tests/qapi-schema/meson.build
  2. 2
      tests/qapi-schema/returns-bad-type.err
  3. 0
      tests/qapi-schema/returns-bad-type.json
  4. 0
      tests/qapi-schema/returns-bad-type.out
  5. 2
      tests/qapi-schema/returns-whitelist.err

2
tests/qapi-schema/meson.build

@ -166,9 +166,9 @@ schemas = [
'reserved-type-list.json',
'returns-alternate.json',
'returns-array-bad.json',
'returns-bad-type.json',
'returns-dict.json',
'returns-unknown.json',
'returns-whitelist.json',
'string-code-point-31.json',
'string-code-point-127.json',
'struct-base-clash-deep.json',

2
tests/qapi-schema/returns-bad-type.err

@ -0,0 +1,2 @@
returns-bad-type.json: In command 'no-way-this-will-get-whitelisted':
returns-bad-type.json:14: command's 'returns' cannot take array type ['int']

0
tests/qapi-schema/returns-whitelist.json → tests/qapi-schema/returns-bad-type.json

0
tests/qapi-schema/returns-whitelist.out → tests/qapi-schema/returns-bad-type.out

2
tests/qapi-schema/returns-whitelist.err

@ -1,2 +0,0 @@
returns-whitelist.json: In command 'no-way-this-will-get-whitelisted':
returns-whitelist.json:14: command's 'returns' cannot take array type ['int']
Loading…
Cancel
Save