[MSCHWERN - Tue Nov 30 00:44:39 2004]:
Show quoted text> Tried running Devel::Cover against Test::More 0.53's tests with 5.8.1
> RC3 and 5.8.5 on OS X both with threads enabled.
>
> It hung on t/sort_bug.t. t/threads.t segfaulted. t/thread_taint.t
> failed.
Part of this may be due to the fact that Devel::Cover turns on threads
when possible. The t/thread_taint.t failure is likely to be because of
it as that test simply checks to make sure Test::More does not load
threads.pm.
Test::More had a similar problem with threads and interfering with the
test results. It had to load threads.pm early in order to make itself
thread safe but loading threads all the time broke people's tests which
assumed threading was off. Test::More now has a caveat about loading
threads.pm before TM, Devel::Cover does not have this luxury.
What you could do is stick a code ref into @INC which watches for
threads.pm being loaded. When its loaded, then you stick in your
special threading code. Sort of a "just in time" approach.