[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/7] tests/libqos/fw_cfg: Pass QTestState as argument
From: |
Laszlo Ersek |
Subject: |
Re: [PATCH 5/7] tests/libqos/fw_cfg: Pass QTestState as argument |
Date: |
Fri, 4 Oct 2019 20:57:36 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 10/04/19 00:54, Philippe Mathieu-Daudé wrote:
> Since a QFWCFG object is not tied to a particular test, we can
> call *_fw_cfg_init() once before creating QTests and use the same
> for all the tests, then release the object with g_free() once all
> the tests are run.
>
> Refactor the qfw_cfg* API to take QTestState as argument.
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
> ---
> tests/boot-order-test.c | 12 ++++----
> tests/fw_cfg-test.c | 49 ++++++++++++++++----------------
> tests/libqos/fw_cfg.c | 61 ++++++++++++++++++++--------------------
> tests/libqos/fw_cfg.h | 30 +++++++++-----------
> tests/libqos/malloc-pc.c | 4 +--
> 5 files changed, 77 insertions(+), 79 deletions(-)
Not much fun to review. :)
Reviewed-by: Laszlo Ersek <address@hidden>
- [PATCH 0/7] fw_cfg: Run tests on big-endian, Philippe Mathieu-Daudé, 2019/10/03
- [PATCH 1/7] tests/libqos/fw_cfg: Document io_fw_cfg_init to drop io_fw_cfg_uninit, Philippe Mathieu-Daudé, 2019/10/03
- [PATCH 2/7] tests/libqos/fw_cfg: Document mm_fw_cfg_init to drop mm_fw_cfg_uninit, Philippe Mathieu-Daudé, 2019/10/03
- [PATCH 3/7] tests/libqos/fw_cfg: Document pc_fw_cfg_init to drop pc_fw_cfg_uninit, Philippe Mathieu-Daudé, 2019/10/03
- [PATCH 4/7] tests/fw_cfg: Let the tests use a context, Philippe Mathieu-Daudé, 2019/10/03
- [PATCH 5/7] tests/libqos/fw_cfg: Pass QTestState as argument, Philippe Mathieu-Daudé, 2019/10/03
- Re: [PATCH 5/7] tests/libqos/fw_cfg: Pass QTestState as argument,
Laszlo Ersek <=
- [PATCH 6/7] tests/fw_cfg: Declare one QFWCFG for all tests, Philippe Mathieu-Daudé, 2019/10/03
- [PATCH 7/7] tests/fw_cfg: Run the tests on big-endian targets, Philippe Mathieu-Daudé, 2019/10/03
- Re: [PATCH 7/7] tests/fw_cfg: Run the tests on big-endian targets, Laurent Vivier, 2019/10/04
- Re: [PATCH 7/7] tests/fw_cfg: Run the tests on big-endian targets, Philippe Mathieu-Daudé, 2019/10/04
- Re: [PATCH 7/7] tests/fw_cfg: Run the tests on big-endian targets, Laurent Vivier, 2019/10/04
- Re: [PATCH 7/7] tests/fw_cfg: Run the tests on big-endian targets, Philippe Mathieu-Daudé, 2019/10/04
- Re: [PATCH 7/7] tests/fw_cfg: Run the tests on big-endian targets, Laurent Vivier, 2019/10/04
- Re: [PATCH 7/7] tests/fw_cfg: Run the tests on big-endian targets, Philippe Mathieu-Daudé, 2019/10/04
- Re: [PATCH 7/7] tests/fw_cfg: Run the tests on big-endian targets, Thomas Huth, 2019/10/07