]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commit
Threads tests may not be able to spawn all the threads
authorVincent Pit <vince@profvince.com>
Sat, 22 Oct 2011 16:55:36 +0000 (18:55 +0200)
committerVincent Pit <vince@profvince.com>
Sat, 22 Oct 2011 16:56:05 +0000 (18:56 +0200)
commita26097967f907b721862e434af302d0bfb6b3e97
treee2f9a16d14b4840c57b4439c0c1c8d159d0870bd
parent70187dc24bb0f90a81f58ff2bd52ba7d9c3ac06f
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 ;
- 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.
MANIFEST
t/59-unwind-threads.t
t/69-uplevel-threads.t
t/79-uid-threads.t
t/lib/Scope/Upper/TestThreads.pm [new file with mode: 0644]