qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v6 21/29] qmp-test: Drop dependence on global_qt


From: Thomas Huth
Subject: Re: [Qemu-devel] [PATCH v6 21/29] qmp-test: Drop dependence on global_qtest
Date: Tue, 5 Sep 2017 09:11:44 +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:
> As a general rule, we prefer avoiding implicit global state
> because it makes code harder to safely copy and paste without
> thinking about the global state.  Although qmp-test does not
> maintain parallel qtest connections, it was the last test
> assigning to global_qtest.  It's just as easy to be explicit
> about the state; once all tests have been cleaned up, a later
> patch can then get rid of global_qtest and a layer of wrappers
> in libqtest.
> 
> Signed-off-by: Eric Blake <address@hidden>
> ---
>  tests/qmp-test.c | 35 ++++++++++++++++++-----------------
>  1 file changed, 18 insertions(+), 17 deletions(-)

Reviewed-by: Thomas Huth <address@hidden>



reply via email to

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