[PATCH] Speedup various nptl/tst-mutex5 tests.
Carlos O'Donell
carlos@redhat.com
Thu Sep 12 14:16:00 GMT 2019
On 9/12/19 8:16 AM, Stefan Liebler wrote:
> Hi,
>
> each of these tests - tst-mutex5, tst-mutex5a, tst-mutexpi5
> and tst-mutexpi5a - runs for 6s.
>
> do_test_clock is called three times, which tries to lock the mutex
> which times out after 2 seconds.
>
> This patch reduces the timeout to 0.3 seconds which leads to a
> runtime of roughly 0.9s for one tst-mutex5... invocation.
> As the nptl tests run in sequence, this patch saves roughly 20s of
> runtime for "make check".
>
> Bye,
> Stefan
>
> ChangeLog:
>
> Â Â Â Â * nptl/tst-mutex5.c (do_test_clock): Reduce timeout.
Why is it safe to wait 0.3 seconds instead of 2 seconds?
Is the timeout being used in place of synchronization elsewhere?
We need a comment specifying if it's safe to lower the timeout
even further.
--
Cheers,
Carlos.
More information about the Libc-alpha
mailing list