On Mon, 19 Oct 2009 12:05:33 -0700
Eric Wilhelm <[email protected]> wrote:

> # from Paul LeoNerd Evans
> # on Monday 19 October 2009 02:45:
> 
> >Before I think about this though; does anyone have any better
> >suggestions? Are there other modules around with timing-sensitive
> > tests? How do they cope with variable load on the test boxes?
> 
> You might be able to do something with Time::Mock.  E.g. slow down the 
> clock or adjust it at critical points.  If your timings are related to 
> sleep(), alarm(), or such that might work.

Ah; I'm afraid not. In the distribution itself it'll be the timeouts
given to select() or poll(). The tests are also part of a shipped module,
IO::Async::LoopTests, that are applied to externally-written modules;
such as might use epoll_pwait(), ppoll(), or GLib's GMainLoop. These
would be quite beyond Perl's control...

-- 
Paul "LeoNerd" Evans

[email protected]
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/

Attachment: signature.asc
Description: PGP signature

Reply via email to