On Tue, Dec 07, 2004 at 11:46:24AM +0000, Dominic Mitchell wrote: > What does it mean to run the test in multiple threads anyway? What are > those other threads doing? I can see someone running code in a separate > thread, but I can't imagine running the TAP stuff in more than one > thread.
Maybe they're testing threads. :) Folks use Test::More with threaded tests all the time. Don't ask me for specifics, I don't use threads. I just get the bug reports when TM breaks. Point is, your testing library should not be a limiting factor for your application. > Just out of interest, how does Test::More cope with threads? The structure that holds the test results is shared. So is the test counter. Any place $Curr_Test is used it is locked for the duration of that use to avoid another thread from incrementing it. Aside from hacking around numerous thread bugs that's about it. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Keep your stick on the ice. -- Red Green