[LTP] [PATCH 2/2] fzsync: Limit execution time to prevent test timeouts

Richard Palethorpe rpalethorpe@suse.de
Mon Aug 13 14:01:26 CEST 2018


Hello,

Li Wang <liwang@redhat.com> writes:

> Hi Richard,
>
> Richard Palethorpe <rpalethorpe@suse.com> wrote:
>
>> Use the tst_timer library to check how long the main test loop has been
>> running for and break the loop if it exceeds 60 seconds. This prevents an
>>
>
> How about setting the timer_state value base on LTP_TIMEOUT_MUL?
>
> I'm worried that 60 seconds maybe not satisfies to all situations because
> many LTP users like to extend
> the test timeout by passing LTP_TIMEOUT_MUL on slow machine.


Yes, this makes a lot of sense to me. Possibly we could simply multiply
the value passed to tst_timer_expired by LTP_TIMEOUT_MUL.

--
Thank you,
Richard.


More information about the ltp mailing list