[LTP] [PATCH] keyctl02: make use of .max_runtime

Li Wang liwang@redhat.com
Sat Nov 19 03:02:17 CET 2022


On Fri, Nov 18, 2022 at 9:38 PM Cyril Hrubis <chrubis@suse.cz> wrote:

> Hi!
> > --- a/testcases/kernel/syscalls/keyctl/keyctl02.c
> > +++ b/testcases/kernel/syscalls/keyctl/keyctl02.c
> > @@ -81,6 +81,11 @@ static void do_test(void)
> >               SAFE_PTHREAD_JOIN(pth[1], NULL);
> >               SAFE_PTHREAD_JOIN(pth[2], NULL);
> >               SAFE_PTHREAD_JOIN(pth[3], NULL);
> > +
> > +             if (!tst_remaining_runtime()) {
> > +                     tst_res(TINFO, "Runtime exhausted, exiting at %i
> looping times", i);
>                                                               ^
>                                                               maybe it
>                                                               would be
>                                                               better:
>                                                               "exiting
> after %i loops"
>

Sounds good, merged this modification.

-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20221119/ae6dd16c/attachment-0001.htm>


More information about the ltp mailing list