On Fri, Feb 21, 2025 at 12:28:42PM -0500, Steven Rostedt wrote:
> On Fri, 21 Feb 2025 08:46:31 -0700
> Shuah Khan <[email protected]> wrote:
> 
> > On 2/20/25 20:35, [email protected] wrote:
> > > From: Yiqian Xun <[email protected]>
> > > 
> > > 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 <[email protected]>
> > > ---
> > >   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 <[email protected]>

-Beau

> Here's the patch: 
> https://lore.kernel.org/all/[email protected]/
> 
> -- Steve
> 
> 

Reply via email to