Subject: | Compile test fails on Windows |
Test::Compile uses fork(), which on Windows doesn't work. It results in an error such as:
Free to wrong pool 1d03e90 not 270c080 at t/000_standard__compile.t line 12 during global destruction.
All my modules started failing on Windows. e.g. http://www.cpantesters.org/cpan/report/7b7b73e9-77f5-1014-8dac-e4cc5f496936
Here's a patch to just skip it on Windows:
BEGIN {
+ if ($^O eq 'MSWin32') {
+ use Test::More skip_all =>
+ "Test::Compile doesn't work properly on Windows";
+ } else {
use Test::More;
eval "use Test::Compile";
Test::More->builder->BAIL_OUT(
"Test::Compile required for testing compilation") if $@;
all_pm_files_ok();
+ }
}