[LTP] [PATCH v3 22/29] fuzzy_sync: Convert to runtime
Li Wang
liwang@redhat.com
Tue May 17 14:28:26 CEST 2022
Cyril Hrubis <chrubis@suse.cz> wrote:
>
> > Or each test case (defined by tcnt) could be given an equal share of the
> > runtime?
>
> That would be solution as well. If everyone agrees on this I will go
> with this version, it should be as easy as:
>
> diff --git a/lib/tst_test.c b/lib/tst_test.c
> index dad8aad92..69d7799c3 100644
> --- a/lib/tst_test.c
> +++ b/lib/tst_test.c
> @@ -1349,6 +1349,8 @@ static void run_tests(void)
>
> if (results_equal(&saved_results, results))
> tst_brk(TBROK, "Test %i haven't reported
> results!", i);
> +
> + kill(getppid(), SIGUSR1);
>
I have to say NO here.
This is only reset timeout for each test, the problem we're encountered
is the max_runtime exhausting, we have to reset 'results->max_runtime'
but not .timeout.
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220517/7aa3deec/attachment-0001.htm>
More information about the ltp
mailing list