Subject: | Tests fail if Pod::Aspell is installed |
Various tests fails if Pod::Aspell is installed:
$ make test
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/manifest.t ......................... ok
t/pod_format.t ....................... ok
t/pod_spelling_aispell.t ............. 1/? Attempt to reload Pod/Spelling/Ispell.pm aborted.
Compilation failed in require at (eval 9) line 2.
at t/pod_spelling_aispell.t line 41.
# Failed test 'Expected errors with Pod::Spelling::Aspell'
# at t/pod_spelling_aispell.t line 49.
# got: '0'
# expected: '1'
# Failed test 'Known unknown word with Pod::Spelling::Aspell'
# at t/pod_spelling_aispell.t line 50.
# got: undef
# expected: 'Goddard'
# $VAR1 = bless( {
# 'aspell' => bless( do{\(my $o = 19570192)}, 'Text::Aspell' ),
# 'skip_paths_matching' => [],
# 'errors' => [],
# 'spell_check_callback' => 'Pod::Spelling::Aspell::_spell_check_callback',
# '_parser' => bless( {
# 'META' => 0,
# 'CODE' => 0,
# 'LINE' => 23,
# 'WARN' => 0,
# 'FILENAME' => 't/good.pod',
# 'WARNINGS' => [],
# 'ERROR' => ''
# }, 'Pod::POM' ),
# 'allow_words' => []
# }, 'Pod::Spelling::Aspell' );
Attempt to reload Pod/Spelling/Ispell.pm aborted.
Compilation failed in require at (eval 12) line 2.
at t/pod_spelling_aispell.t line 53.
Attempt to reload Pod/Spelling/Ispell.pm aborted.
Compilation failed in require at (eval 14) line 2.
at t/pod_spelling_aispell.t line 53.
Attempt to reload Pod/Spelling/Ispell.pm aborted.
Compilation failed in require at (eval 16) line 2.
at t/pod_spelling_aispell.t line 57.
Attempt to reload Pod/Spelling/Ispell.pm aborted.
Compilation failed in require at (eval 21) line 2.
at t/pod_spelling_aispell.t line 57.
# Looks like you failed 2 tests of 15.
It looks like the aspell (aspell-en-7.1) recognizes different words than the tests expect:
$ perl -Ilib -e 'require Pod::Spelling::Aspell; $o=Pod::Spelling::Aspell->new; $r=$o->check_file(q{t/good.pod}); print qq{<$r>\n};'
<0>
$ aspell list < t/good.pod
html
html
asdf
There is a similar failure on CPAN testers <http://www.cpantesters.org/cpan/report/f7cf6566-617a-11e4-9ce3-9a752656b80b>.