diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-08-30 17:58:10 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2018-08-31 09:53:10 +0200 |
commit | ae6bf766048ecaeef90b85c4fb2b4db2aa0c094c (patch) | |
tree | 8225107f31a4b0e050347d38a2bdcab282c77a43 /tests/qapi-schema/qapi-schema-test.json | |
parent | 2b70ea92766f5a1a735a44e28c92cdfba3c4054f (diff) | |
download | qemu-ae6bf766048ecaeef90b85c4fb2b4db2aa0c094c.zip |
tests: add a qmp success-response test
Verify the usage of this schema feature and the API behaviour. This
should be the only case where qmp_dispatch() returns NULL.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qapi-schema/qapi-schema-test.json')
-rw-r--r-- | tests/qapi-schema/qapi-schema-test.json | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/qapi-schema/qapi-schema-test.json b/tests/qapi-schema/qapi-schema-test.json index 11aa4c8f8d..fb03163430 100644 --- a/tests/qapi-schema/qapi-schema-test.json +++ b/tests/qapi-schema/qapi-schema-test.json @@ -137,6 +137,8 @@ 'data': {'ud1a': 'UserDefOne', '*ud1b': 'UserDefOne'}, 'returns': 'UserDefTwo' } +{ 'command': 'cmd-success-response', 'data': {}, 'success-response': false } + # Returning a non-dictionary requires a name from the whitelist { 'command': 'guest-get-time', 'data': {'a': 'int', '*b': 'int' }, 'returns': 'int' } |