This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
qemu
Watch
1
Star
0
Fork
0
You've already forked qemu
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
fbeed19761
qemu
/
tests
/
qapi-schema
/
duplicate-key.json
4 lines
92 B
JSON
Raw
Normal View
History
Unescape
Escape
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>
2019-09-14 18:34:49 +03:00
#
C
a
n
n
o
t
i
n
c
l
u
d
e
t
h
e
s
a
m
e
k
e
y
m
o
r
e
t
h
a
n
o
n
c
e
i
n
a
n
y
{
}
qapi script: add check for duplicated key It is bad that same key was specified twice, especially when a union has two branches with same condition. This patch can prevent it. Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
2014-03-05 06:44:32 +04:00
{
'
k
e
y
'
:
'
v
a
l
u
e
'
,
'
k
e
y
'
:
'
v
a
l
u
e
'
}
Reference in New Issue
Copy Permalink