develooper Front page | perl.perl5.porters | Postings from June 2008

[PATCH-revised^2] common test code for timed bail

From:
Jerry D. Hedden
Date:
June 27, 2008 11:17
Subject:
[PATCH-revised^2] common test code for timed bail
Message ID:
1ff86f510806271109q560bda43r2e98a0b49286d840@mail.gmail.com
The attached patch addresses the following Perl TODO:

=head2 common test code for timed bail out

Write portable self destruct code for tests to stop them burning CPU in
infinite loops. This needs to avoid using alarm, as some of the tests are
testing alarm/sleep or timers.

I needed to put alarm() in an eval in case it's not available.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About