[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/3] tests: add qtest_set_exit_status()
From: |
Thomas Huth |
Subject: |
Re: [Qemu-devel] [PATCH 2/3] tests: add qtest_set_exit_status() |
Date: |
Wed, 17 Jul 2019 13:50:28 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 |
On 08/07/2019 09.24, Marc-André Lureau wrote:
> Modify the behaviour of qtest_quit() to check against the expected
> exit status value. The default remains 0.
>
> Signed-off-by: Marc-André Lureau <address@hidden>
> ---
> tests/libqtest.c | 41 ++++++++++++++++++++++-------------------
> tests/libqtest.h | 9 +++++++++
> 2 files changed, 31 insertions(+), 19 deletions(-)
>
> diff --git a/tests/libqtest.c b/tests/libqtest.c
> index 3c5c3f49d8..d722de6da8 100644
> --- a/tests/libqtest.c
> +++ b/tests/libqtest.c
> @@ -46,6 +46,7 @@ struct QTestState
> bool big_endian;
> bool irq_level[MAX_IRQ];
> GString *rx;
> + int exit_status;
Could you please call the variable "expected_exit_status" or
"expected_status"? I think that's less confusing.
Thanks,
Thomas
- [Qemu-devel] [PATCH 0/3] Add dbus-vmstate, Marc-André Lureau, 2019/07/08
- [Qemu-devel] [PATCH 1/3] qemu-file: move qemu_{get, put}_counted_string() declarations, Marc-André Lureau, 2019/07/08
- [Qemu-devel] [PATCH 2/3] tests: add qtest_set_exit_status(), Marc-André Lureau, 2019/07/08
- [Qemu-devel] [PATCH 3/3] Add dbus-vmstate object, Marc-André Lureau, 2019/07/08
- Re: [Qemu-devel] [PATCH 0/3] Add dbus-vmstate, no-reply, 2019/07/08
- Re: [Qemu-devel] [PATCH 0/3] Add dbus-vmstate, no-reply, 2019/07/08
- Re: [Qemu-devel] [PATCH 0/3] Add dbus-vmstate, Dr. David Alan Gilbert, 2019/07/08
- Re: [Qemu-devel] [PATCH 0/3] Add dbus-vmstate, Daniel P . Berrangé, 2019/07/08