]> git.vpit.fr Git - perl/modules/Variable-Magic.git/commit
Threads tests may not be able to spawn all the threads
authorVincent Pit <vince@profvince.com>
Mon, 24 Oct 2011 19:57:55 +0000 (21:57 +0200)
committerVincent Pit <vince@profvince.com>
Mon, 24 Oct 2011 20:06:25 +0000 (22:06 +0200)
commitdee682e232db910b1e38e162ac51b0d98725e40e
tree6326e0af6b7a68064ef41da38c1f3f3aef11d605
parent69d59682d7e861e55be7a1b125c2e60e797a7d74
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 ;
- don't set a plan in threads tests.
MANIFEST
t/40-threads.t
t/41-clone.t
t/lib/Variable/Magic/TestThreads.pm [new file with mode: 0644]