From: Beau Belgrave <beaub@linux.microsoft.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Shuah Khan <skhan@linuxfoundation.org>,
realxxyq@163.com, shuah@kernel.org,
linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org,
Yiqian Xun <xunyiqian@kylinos.cn>
Subject: Re: [PATCH v1] selftests/user_events: Fix failures caused by test code
Date: Mon, 24 Feb 2025 19:21:26 +0000 [thread overview]
Message-ID: <20250224192105.GA48-beaub@linux.microsoft.com> (raw)
In-Reply-To: <20250221122842.379198f9@gandalf.local.home>
On Fri, Feb 21, 2025 at 12:28:42PM -0500, Steven Rostedt wrote:
> On Fri, 21 Feb 2025 08:46:31 -0700
> Shuah Khan <skhan@linuxfoundation.org> wrote:
>
> > On 2/20/25 20:35, realxxyq@163.com wrote:
> > > From: Yiqian Xun <xunyiqian@kylinos.cn>
> > >
> > > In parse_abi function,the dyn_test fails because the
> > > enable_file isn’t closed after successfully registering an event.
> > > By adding wait_for_delete(), the dyn_test now passes as expected.
> > >
> > > Signed-off-by: Yiqian Xun <xunyiqian@kylinos.cn>
> > > ---
> > > tools/testing/selftests/user_events/dyn_test.c | 2 ++
> > > 1 file changed, 2 insertions(+)
> > >
> > > diff --git a/tools/testing/selftests/user_events/dyn_test.c b/tools/testing/selftests/user_events/dyn_test.c
> > > index bdf9ab127488..54c9412f8dee 100644
> > > --- a/tools/testing/selftests/user_events/dyn_test.c
> > > +++ b/tools/testing/selftests/user_events/dyn_test.c
> > > @@ -127,6 +127,8 @@ static int parse_abi(int *check, const char *value)
> > >
> > > close(fd);
> > >
> > > + wait_for_delete();
> > > +
> > > return ret;
> > > }
> > >
> >
Thank you for this fix!
> > Adding Steve for review.
> >
> > Steve, please review the patch. If you are happy with it
> > give me Ack or Reviewed-by if you want to take this through
> > my tree.
>
> Actually, Beau should review it.
>
> Beau?
>
I applied it locally and ensured it passed (seems timing related).
Acked-by: Beau Belgrave <beaub@linux.microsoft.com>
-Beau
> Here's the patch: https://lore.kernel.org/all/20250221033555.326716-1-realxxyq@163.com/
>
> -- Steve
>
>
next prev parent reply other threads:[~2025-02-24 19:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-21 3:35 realxxyq
2025-02-21 15:46 ` Shuah Khan
2025-02-21 17:28 ` Steven Rostedt
2025-02-24 19:21 ` Beau Belgrave [this message]
2025-02-24 19:26 ` Steven Rostedt
2025-02-24 23:39 ` Shuah Khan
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=20250224192105.GA48-beaub@linux.microsoft.com \
--to=beaub@linux.microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=realxxyq@163.com \
--cc=rostedt@goodmis.org \
--cc=shuah@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=xunyiqian@kylinos.cn \
/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
all inboxes | Powered by JetHome®