public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Avinesh Kumar <akumar@suse.de>
To: Petr Vorel <pvorel@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 8/8] tst_test.c: Change fork_testrun() return type to void
Date: Fri, 14 Nov 2025 09:55:22 +0100	[thread overview]
Message-ID: <13884671.uLZWGnKmhe@thinkpad> (raw)
In-Reply-To: <20251107102939.1111074-9-pvorel@suse.cz>

Hi Petr,

On Friday, November 7, 2025 11:29:39 AM CET Petr Vorel wrote:
> Return code is not used any more.
very nit:
s/any more/anymore
(also applies in patch 6 and 7)

Reviewed-by: Avinesh Kumar <akumar@suse.de>
for all patches in the series.

Regards,
Avinesh
> 
> Fixes: a1f82704c2 ("lib/tst_test.c: Fix tst_brk() handling")
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
>  lib/tst_test.c | 10 ++++------
>  1 file changed, 4 insertions(+), 6 deletions(-)
> 
> diff --git a/lib/tst_test.c b/lib/tst_test.c
> index 8098b3a010..e115ce689d 100644
> --- a/lib/tst_test.c
> +++ b/lib/tst_test.c
> @@ -1880,7 +1880,7 @@ void tst_set_runtime(int runtime)
>  	heartbeat();
>  }
>  
> -static int fork_testrun(void)
> +static void fork_testrun(void)
>  {
>  	int status;
>  
> @@ -1911,8 +1911,8 @@ static int fork_testrun(void)
>  	SAFE_SIGNAL(SIGINT, SIG_DFL);
>  
>  	if (tst_test->taint_check && tst_taint_check()) {
> -		tst_res(TFAIL, "Kernel is now tainted.");
> -		return TFAIL;
> +		tst_res(TFAIL, "Kernel is now tainted");
> +		return;
>  	}
>  
>  	if (tst_test->forks_child && kill(-test_pid, SIGKILL) == 0)
> @@ -1922,7 +1922,7 @@ static int fork_testrun(void)
>  		tst_brk(TBROK, "Child returned with %i", WEXITSTATUS(status));
>  
>  	if (context->abort_flag)
> -		return 0;
> +		return;
>  
>  	if (WIFSIGNALED(status) && WTERMSIG(status) == SIGKILL) {
>  		tst_res(TINFO, "If you are running on slow machine, "
> @@ -1932,8 +1932,6 @@ static int fork_testrun(void)
>  
>  	if (WIFSIGNALED(status))
>  		tst_brk(TBROK, "Test killed by %s!", tst_strsig(WTERMSIG(status)));
> -
> -	return 0;
>  }
>  
>  static struct tst_fs *lookup_fs_desc(const char *fs_type, int all_filesystems)
> 





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

  reply	other threads:[~2025-11-14  8:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-07 10:29 [LTP] [PATCH 0/8] tst_test.c: Minor return code cleanup Petr Vorel
2025-11-07 10:29 ` [LTP] [PATCH 1/8] tst_test.c: Fix tst_check_cmd() use Petr Vorel
2025-11-08  7:16   ` Wei Gao via ltp
2025-11-14  8:49   ` Avinesh Kumar
2025-11-07 10:29 ` [LTP] [PATCH 2/8] tst_cmd.c: Check brk_nosupp when tst_get_path failed Petr Vorel
2025-11-08  7:20   ` Wei Gao via ltp
2025-11-07 10:29 ` [LTP] [PATCH 3/8] tst_test.c: Change check_kver() return type to bool Petr Vorel
2025-11-14  8:53   ` Avinesh Kumar
2025-11-07 10:29 ` [LTP] [PATCH 4/8] tst_test.c: Change results_equal() " Petr Vorel
2025-11-07 10:29 ` [LTP] [PATCH 5/8] tst_test.c: Change needs_tmpdir() " Petr Vorel
2025-11-07 10:29 ` [LTP] [PATCH 6/8] tst_test.c: Change run_tcases_per_fs() return type to void Petr Vorel
2025-11-07 10:29 ` [LTP] [PATCH 7/8] tst_test.c: Change run_tcase_on_fs() " Petr Vorel
2025-11-07 10:29 ` [LTP] [PATCH 8/8] tst_test.c: Change fork_testrun() " Petr Vorel
2025-11-14  8:55   ` Avinesh Kumar [this message]
2025-11-14 10:06     ` Petr Vorel
2025-12-18 11:53       ` Andrea Cervesato via ltp
2025-12-22  8:15         ` Petr Vorel
2025-11-10  7:18 ` [LTP] [PATCH 0/8] tst_test.c: Minor return code cleanup Li Wang via ltp

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=13884671.uLZWGnKmhe@thinkpad \
    --to=akumar@suse.de \
    --cc=ltp@lists.linux.it \
    --cc=pvorel@suse.cz \
    /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