diff options
author | Markus Armbruster | 2021-01-26 16:16:49 +0100 |
---|---|---|
committer | Thomas Huth | 2021-01-27 07:18:13 +0100 |
commit | f8a9b4c66569cbc1640722369a91c635102b5264 (patch) | |
tree | ed32b36335d728e08b27d8510e8ef30871d15d58 /ui/spice-app.c | |
parent | docs/devel: Explain how acceptance tests can be skipped (diff) | |
download | qemu-f8a9b4c66569cbc1640722369a91c635102b5264.tar.gz qemu-f8a9b4c66569cbc1640722369a91c635102b5264.tar.xz qemu-f8a9b4c66569cbc1640722369a91c635102b5264.zip |
libqtest: Rework qtest_rsp()
qtest_rsp() is used in two different ways: (1) return some arguments
to caller, which the caller must free, and (2) return no arguments to
caller. Passing non-zero @expected_args gets you (1), and passing
zero gets you (2).
Having "the return value must be freed" depend on an argument this way
is less than ideal.
Provide separate functions for the two ways: (1) qtest_rsp_args()
takes @expected_args (possibly zero), and returns that number of
arguments. Caller must free the return value always. (2) qtest_rsp()
assumes zero, and returns nothing.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210126151649.2220902-1-armbru@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'ui/spice-app.c')
0 files changed, 0 insertions, 0 deletions