From: Thomas Huth <thuth@redhat.com>
To: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>,
qemu-devel@nongnu.org, lvivier@redhat.com,
peter.maydell@linaro.org
Subject: Re: [PATCH] tests/migration-test: Fix "true" vs true
Date: Tue, 4 May 2021 12:07:28 +0200 [thread overview]
Message-ID: <d3a05612-92dd-b926-48db-825e00e1065a@redhat.com> (raw)
In-Reply-To: <20210504100545.112213-1-dgilbert@redhat.com>
On 04/05/2021 12.05, Dr. David Alan Gilbert (git) wrote:
> From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
>
> Accidental use of "true" as a boolean; spotted by coverity
> and Peter.
>
> Fixes: b99784ef6c3
> Fixes: d795f47466e
> Reported-by: Peter Maydell <peter.maydell@linaro.org>
> Reported-by: Coverity (CID 1432373, 1432292, 1432288)
> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> ---
> tests/qtest/migration-test.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
> index 3a711bb492..4d989f191b 100644
> --- a/tests/qtest/migration-test.c
> +++ b/tests/qtest/migration-test.c
> @@ -898,8 +898,8 @@ static void test_xbzrle(const char *uri)
>
> migrate_set_parameter_int(from, "xbzrle-cache-size", 33554432);
>
> - migrate_set_capability(from, "xbzrle", "true");
> - migrate_set_capability(to, "xbzrle", "true");
> + migrate_set_capability(from, "xbzrle", true);
> + migrate_set_capability(to, "xbzrle", true);
> /* Wait for the first serial output from the source */
> wait_for_serial("src_serial");
>
> @@ -1246,8 +1246,8 @@ static void test_multifd_tcp(const char *method)
> migrate_set_parameter_str(from, "multifd-compression", method);
> migrate_set_parameter_str(to, "multifd-compression", method);
>
> - migrate_set_capability(from, "multifd", "true");
> - migrate_set_capability(to, "multifd", "true");
> + migrate_set_capability(from, "multifd", true);
> + migrate_set_capability(to, "multifd", true);
>
> /* Start incoming migration from the 1st socket */
> rsp = wait_command(to, "{ 'execute': 'migrate-incoming',"
> @@ -1330,8 +1330,8 @@ static void test_multifd_tcp_cancel(void)
> migrate_set_parameter_int(from, "multifd-channels", 16);
> migrate_set_parameter_int(to, "multifd-channels", 16);
>
> - migrate_set_capability(from, "multifd", "true");
> - migrate_set_capability(to, "multifd", "true");
> + migrate_set_capability(from, "multifd", true);
> + migrate_set_capability(to, "multifd", true);
>
> /* Start incoming migration from the 1st socket */
> rsp = wait_command(to, "{ 'execute': 'migrate-incoming',"
> @@ -1358,7 +1358,7 @@ static void test_multifd_tcp_cancel(void)
>
> migrate_set_parameter_int(to2, "multifd-channels", 16);
>
> - migrate_set_capability(to2, "multifd", "true");
> + migrate_set_capability(to2, "multifd", true);
>
> /* Start incoming migration from the 1st socket */
> rsp = wait_command(to2, "{ 'execute': 'migrate-incoming',"
>
Reviewed-by: Thomas Huth <thuth@redhat.com>
next prev parent reply other threads:[~2021-05-04 10:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-04 10:05 [PATCH] tests/migration-test: Fix "true" vs true Dr. David Alan Gilbert (git)
2021-05-04 10:07 ` Thomas Huth [this message]
2021-05-04 10:08 ` Philippe Mathieu-Daudé
2021-05-11 9:47 ` Dr. David Alan Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d3a05612-92dd-b926-48db-825e00e1065a@redhat.com \
--to=thuth@redhat.com \
--cc=dgilbert@redhat.com \
--cc=lvivier@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).