Setting high test timeouts makes some tests take longer.

Carlos O'Donell carlos@redhat.com
Fri Feb 26 11:49:00 GMT 2016


Mike,

I noticed nptl/tst-exit2 taking longer and longer the more
I increased my timeouts.

If you look at the test it actually relies on the test to
timeout for it to complete! Yikes!

It uses pthread_exit to exit the main thread, and then it
proves the created thread is still running by timing out
the test.

These tests that have "EXPECTED_SIGNAL SIGALRM" (not all
of them, but several) need to be rewritten to use alarm()
to trigger the signal at some reasonable time instead of
the full duration of the test timeout.

So with your patch to increase timeouts, it makes
these tests take longer :-(

Do you think using alarm() is a good solution? Seems
easiest.

Cheers,
Carlos.



More information about the Libc-alpha mailing list