]> git.vpit.fr Git - perl/modules/autovivification.git/commitdiff
Threads tests may not be able to spawn all the threads
authorVincent Pit <vince@profvince.com>
Fri, 11 Nov 2011 18:41:17 +0000 (19:41 +0100)
committerVincent Pit <vince@profvince.com>
Fri, 11 Nov 2011 18:41:17 +0000 (19:41 +0100)
To work around this :
- move all the threads boilerplate to a new helper test module ;
- capture the warnings/errors that threads->create may throw and reprint
them properly as diagnostics ;
- use Test::Leaner instead of Test::More, as older Test::More sometimes
cause out of sequence bugs ;
- last but not least, do not hardcode the plan and use done_testing with
the actual number of spawned threads instead.


No differences found