qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Markus Armbruster <armbru@redhat.com>, qemu-devel@nongnu.org
Cc: michael.roth@amd.com
Subject: Re: [PATCH 1/3] tests/unit/test-qmp-event: Drop superfluous mutex
Date: Wed, 22 Nov 2023 09:03:49 +0100	[thread overview]
Message-ID: <1ef412d7-91f8-43e2-8749-0c961b8e0b61@redhat.com> (raw)
In-Reply-To: <20231122072456.2518816-2-armbru@redhat.com>

On 22/11/2023 08.24, Markus Armbruster wrote:
> Mutex @test_event_lock is held from fixture setup to teardown,
> protecting global variable @test_event_data.  But tests always run one
> after the other, so this is superfluous.  It also confuses Coverity.
> Drop the mutex.
> 
> Fixes: CID 1527425
> Signed-off-by: Markus Armbruster <armbru@redhat.com>
> ---
>   tests/unit/test-qmp-event.c | 5 -----
>   1 file changed, 5 deletions(-)

Reviewed-by: Thomas Huth <thuth@redhat.com>



  reply	other threads:[~2023-11-22  8:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-22  7:24 [PATCH 0/3] tests/unit/test-qmp-event: Unconfuse Coverity & simplify Markus Armbruster
2023-11-22  7:24 ` [PATCH 1/3] tests/unit/test-qmp-event: Drop superfluous mutex Markus Armbruster
2023-11-22  8:03   ` Thomas Huth [this message]
2023-11-22  7:24 ` [PATCH 2/3] tests/unit/test-qmp-event: Simplify event emission check Markus Armbruster
2023-11-22  8:07   ` Thomas Huth
2023-11-22  7:24 ` [PATCH 3/3] tests/unit/test-qmp-event: Replace fixture by global variables Markus Armbruster
2023-11-22  8:09   ` Thomas Huth

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=1ef412d7-91f8-43e2-8749-0c961b8e0b61@redhat.com \
    --to=thuth@redhat.com \
    --cc=armbru@redhat.com \
    --cc=michael.roth@amd.com \
    --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).