Răsfoiți Sursa

tests/qapi-schema: Delete two redundant tests

Tests duplicate-key and double-data test the same thing.  The former
predates the latter, and it has a better name.  Delete the latter, and
tweak the former's comment.

Tests include-format-err and include-extra-junk test the same thing.
The former predates the latter, but the latter has a better name and a
comment.  Delete the former.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190914153506.2151-3-armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Markus Armbruster 6 ani în urmă
părinte
comite
352ada9ad4

+ 0 - 2
tests/Makefile.include

@@ -359,7 +359,6 @@ qapi-schema += doc-missing-expr.json
 qapi-schema += doc-missing-space.json
 qapi-schema += doc-missing.json
 qapi-schema += doc-no-symbol.json
-qapi-schema += double-data.json
 qapi-schema += double-type.json
 qapi-schema += duplicate-key.json
 qapi-schema += empty.json
@@ -404,7 +403,6 @@ qapi-schema += ident-with-escape.json
 qapi-schema += include-before-err.json
 qapi-schema += include-cycle.json
 qapi-schema += include-extra-junk.json
-qapi-schema += include-format-err.json
 qapi-schema += include-nested-err.json
 qapi-schema += include-no-file.json
 qapi-schema += include-non-file.json

+ 0 - 1
tests/qapi-schema/double-data.err

@@ -1 +0,0 @@
-tests/qapi-schema/double-data.json:2:41: Duplicate key "data"

+ 0 - 1
tests/qapi-schema/double-data.exit

@@ -1 +0,0 @@
-1

+ 0 - 2
tests/qapi-schema/double-data.json

@@ -1,2 +0,0 @@
-# we reject an expression with duplicate top-level keys
-{ 'struct': 'bar', 'data': { }, 'data': { 'string': 'str'} }

+ 0 - 0
tests/qapi-schema/double-data.out


+ 1 - 1
tests/qapi-schema/duplicate-key.json

@@ -1,3 +1,3 @@
-# QAPI cannot include the same key more than once in any {}
+# Cannot include the same key more than once in any {}
 { 'key': 'value',
   'key': 'value' }

+ 0 - 1
tests/qapi-schema/include-format-err.err

@@ -1 +0,0 @@
-tests/qapi-schema/include-format-err.json:1: Invalid 'include' directive

+ 0 - 1
tests/qapi-schema/include-format-err.exit

@@ -1 +0,0 @@
-1

+ 0 - 2
tests/qapi-schema/include-format-err.json

@@ -1,2 +0,0 @@
-{ 'include': 'include-simple-sub.json',
-  'foo': 'bar' }

+ 0 - 0
tests/qapi-schema/include-format-err.out