]> git.vpit.fr Git - perl/modules/Lexical-Types.git/commit
Threads tests may not be able to spawn all the threads
authorVincent Pit <vince@profvince.com>
Fri, 2 Nov 2012 12:35:46 +0000 (10:35 -0200)
committerVincent Pit <vince@profvince.com>
Fri, 2 Nov 2012 12:35:46 +0000 (10:35 -0200)
commita838a3bf0d49fcb56ea57da58771d2e2c77bfc26
tree37d8ec7cc4326a5f0397d9293d08ac998bae0df6
parentedb71e7af0ed10c8b114f0aaab25ff1b20d4d99e
Threads tests may not be able to spawn all the threads

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 ;
- do not hardcode the plan and use 'no_plan' instead.
MANIFEST
t/30-threads.t
t/31-threads-teardown.t
t/lib/Lexical/Types/TestThreads.pm [new file with mode: 0644]