Claus Reinke wrote:
ThreadDelay is a perfectly reasonable test: it tests that threadDelay doesn't wait for *less* time than was requested. Clearly something is wrong on your machine with either threadDelay or the way time is measured, but we haven't seen the same symptoms elsewhere so it's hard to diagnose. Still, we should try to investigate at some point.

oops, sorry. on looking through the test sources, it seems
i was thinking of CPUTime, which also fails occasionally
if my laptop is loaded.

there's a comment in GHC.Conc:

-- Note: threadDelay, threadWaitRead and threadWaitWrite aren't really functional -- on Win32, but left in there because lib code (still) uses them (the manner -- in which they're used doesn't cause problems on a Win32 platform though.)

is that (still) relevant?

threadDelay at least should work well on Windows, the other two don't (but we don't use them in the IO library). I'll update the comment.

Cheers,
        Simon

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to