[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 04/29] qtest: Don't perform side effects insi
|
From: |
Thomas Huth |
|
Subject: |
Re: [Qemu-devel] [PATCH v6 04/29] qtest: Don't perform side effects inside assertion |
|
Date: |
Mon, 4 Sep 2017 16:06:17 +0200 |
|
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
On 01.09.2017 20:03, Eric Blake wrote:
> Assertions should be separate from the side effects, since in
> theory, g_assert() can be disabled (in practice, we can't really
> ever do that).
>
> Signed-off-by: Eric Blake <address@hidden>
> ---
> qtest.c | 80
> ++++++++++++++++++++++++++++++++++++++++++++++-------------------
> 1 file changed, 57 insertions(+), 23 deletions(-)
Right, we should get rid of this bad coding style in the QEMU sources.
Reviewed-by: Thomas Huth <address@hidden>
- [Qemu-devel] [PATCH v6 02/29] tests: Sort .gitignore, (continued)
- [Qemu-devel] [PATCH v6 02/29] tests: Sort .gitignore, Eric Blake, 2017/09/01
- Re: [Qemu-devel] [PATCH v6 02/29] tests: Sort .gitignore, Thomas Huth, 2017/09/05
- Re: [Qemu-devel] [PATCH v6 02/29] tests: Sort .gitignore, Markus Armbruster, 2017/09/05
- Re: [Qemu-devel] [PATCH v6 02/29] tests: Sort .gitignore, Thomas Huth, 2017/09/05
- Re: [Qemu-devel] [PATCH v6 02/29] tests: Sort .gitignore, Daniel P. Berrange, 2017/09/05
- Re: [Qemu-devel] [PATCH v6 02/29] tests: Sort .gitignore, Thomas Huth, 2017/09/05
- Re: [Qemu-devel] [PATCH v6 02/29] tests: Sort .gitignore, Eric Blake, 2017/09/05
[Qemu-devel] [PATCH v6 05/29] numa-test: Use hmp(), Eric Blake, 2017/09/01
[Qemu-devel] [PATCH v6 04/29] qtest: Don't perform side effects inside assertion, Eric Blake, 2017/09/01
- Re: [Qemu-devel] [PATCH v6 04/29] qtest: Don't perform side effects inside assertion,
Thomas Huth <=
[Qemu-devel] [PATCH v6 07/29] libqtest: Remove dead qtest_instances variable, Eric Blake, 2017/09/01
[Qemu-devel] [PATCH v6 10/29] libqtest: Topologically sort functions, Eric Blake, 2017/09/01
[Qemu-devel] [PATCH v6 09/29] libqtest: Use qemu_strtoul(), Eric Blake, 2017/09/01
[Qemu-devel] [PATCH v6 06/29] tests: Clean up wait for event, Eric Blake, 2017/09/01
[Qemu-devel] [PATCH v6 08/29] libqtest: Let socket_send() compute length, Eric Blake, 2017/09/01