[PATCH] Speedup various nptl/tst-cancel20 and nptl/tst-cancel21 tests.
Stefan Liebler
stli@linux.ibm.com
Thu Sep 12 12:15:00 GMT 2019
Hi,
each of thease tests - tst-cancel20, tst-cancelx20, tst-cancel21,
tst-cancelx21 and tst-cancel21-static - runs for 8s.
do_one_test is called 4 times. Either in do_one_test (tst-cancel20.c)
or in tf (tst-cancel21.c) "sleep (1)" is called 2 times.
This patch reduces the sleep time. Using usleep (5ms) leads to a
runtime of one tst-cancel... invocation of roughly 40ms instead of 8s.
As the nptl tests run in sequence, this patch saves roughly 39s of
runtime for "make check".
Bye,
Stefan
ChangeLog:
* nptl/tst-cancel20.c (do_one_test): Reduce sleep times.
* nptl/tst-cancel21.c (tf): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20190911_nptl_tstcancel20_21.patch
Type: text/x-patch
Size: 1736 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20190912/df01b77b/attachment.bin>
More information about the Libc-alpha
mailing list