All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] keyctl02: make use of .max_runtime
Date: Fri, 18 Nov 2022 14:39:40 +0100	[thread overview]
Message-ID: <Y3eLHM6Q/W+5Ndcg@yuki> (raw)
In-Reply-To: <20221118065751.4120847-1-liwang@redhat.com>

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"
> +			break;
> +		}
>  	}

Other than that:

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2022-11-18 13:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-18  6:57 [LTP] [PATCH] keyctl02: make use of .max_runtime Li Wang
2022-11-18 13:39 ` Cyril Hrubis [this message]
2022-11-19  2:02   ` Li Wang

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=Y3eLHM6Q/W+5Ndcg@yuki \
    --to=chrubis@suse.cz \
    --cc=liwang@redhat.com \
    --cc=ltp@lists.linux.it \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.