diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-09-02 13:57:33 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2020-09-03 12:47:33 +0200 |
commit | 3bc1b8ee8cea6823295d161c0313e8441b7321f7 (patch) | |
tree | 4a35048416f6e668341d4569179e8c106073d8d2 /tests/qtest/libqos | |
parent | 978382b453b0e40cc17a983b8c1676386fd3cc5e (diff) | |
download | qemu-3bc1b8ee8cea6823295d161c0313e8441b7321f7.zip qemu-3bc1b8ee8cea6823295d161c0313e8441b7321f7.tar.gz qemu-3bc1b8ee8cea6823295d161c0313e8441b7321f7.tar.bz2 |
libqtest: Rename qmp_assert_error_class() to qmp_expect_error_and_unref()
qmp_assert_error_class() does more than just assert: it also unrefs
the @rsp argument. Rename to qmp_expect_error_and_unref() to reduce
confusion.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200902115733.1229537-1-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/libqos')
-rw-r--r-- | tests/qtest/libqos/libqtest.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qtest/libqos/libqtest.h b/tests/qtest/libqos/libqtest.h index f5cf93c..a6ee165 100644 --- a/tests/qtest/libqos/libqtest.h +++ b/tests/qtest/libqos/libqtest.h @@ -704,13 +704,13 @@ void qtest_qmp_device_del(QTestState *qts, const char *id); bool qmp_rsp_is_err(QDict *rsp); /** - * qmp_assert_error_class: + * qmp_expect_error_and_unref: * @rsp: QMP response to check for error * @class: an error class * * Assert the response has the given error class and discard @rsp. */ -void qmp_assert_error_class(QDict *rsp, const char *class); +void qmp_expect_error_and_unref(QDict *rsp, const char *class); /** * qtest_probe_child: |