[LTP] [PATCH v2 1/2] lib: add tst_get_timeout()

Cyril Hrubis chrubis@suse.cz
Tue Aug 28 14:58:08 CEST 2018


Hi!
It's just an idea, but we can make this even more elegant API.

We measure the time in the test library anyway, so what about we added
something as tst_timeout_reached() that would return number of seconds
remaining to 80% of the real timeout or 0 if in a case that the timeout
was reached. Then we can use this as a soft-timeout in all the testcases
without any additional steps.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list