qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 04/23] libqtest: Remove qtest_qmp_discard_res


From: Thomas Huth
Subject: Re: [Qemu-devel] [PATCH v3 04/23] libqtest: Remove qtest_qmp_discard_response() & friends
Date: Mon, 6 Aug 2018 09:02:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 08/06/2018 08:53 AM, Markus Armbruster wrote:
> qtest_qmp_discard_response(...) is shorthand for
> qobject_unref(qtest_qmp(...), except it's not actually shorter.
> Moreover, the presence of these functions encourage sloppy testing.
> Remove them from libqtest.  Add them as macros to the tests that use
> them, with a TODO comment asking for cleanup.
> 
> Signed-off-by: Markus Armbruster <address@hidden>
> Reviewed-by: Eric Blake <address@hidden>
> ---
>  tests/ahci-test.c              |  3 +++
>  tests/boot-order-test.c        |  5 ++++-
>  tests/drive_del-test.c         |  3 +++
>  tests/fdc-test.c               |  4 ++++
>  tests/ide-test.c               |  5 ++++-
>  tests/libqtest.c               | 27 +--------------------------
>  tests/libqtest.h               | 27 ---------------------------
>  tests/migration-test.c         |  3 +++
>  tests/test-filter-mirror.c     |  4 ++++
>  tests/test-filter-redirector.c |  4 ++++
>  tests/virtio-blk-test.c        |  4 ++++
>  11 files changed, 34 insertions(+), 55 deletions(-)

Reviewed-by: Thomas Huth <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]