Subject: | Tests fail on perl-5.14.0-RC0 with Params::Validate 0.95 |
With perl-5.14.0-RC1 and Params::Validate 0.95 as a prerequisite, some
tests fail, starting with:
PERL_DL_NONLAZY=1
/home/moritz/perl5/perls/perl-5.14.0-RC1/bin/perl5.14.0
"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
# Testing Getopt::Long::Descriptive 0.089, Perl 5.014000,
/home/moritz/perl5/perls/perl-5.14.0-RC1/bin/perl5.14.0
t/00-load.t ....... ok
# Failed test 'basic usage, passed-in: "one_of" is not an allowed
validation spec key
# at
/home/moritz/.cpanm/work/1303372530.31041/Getopt-Long-Descriptive-0.089/blib/lib/Getopt/Long/Descriptive.pm
line 486
# eval {...} called at
/home/moritz/.cpanm/work/1303372530.31041/Getopt-Long-Descriptive-0.089/blib/lib/Getopt/Long/Descriptive.pm
line 484
# Getopt::Long::Descriptive::_validate_with('name', 'bar',
'params', 'HASH(0x286d3a0)', 'spec', 'HASH(0x25217a0)', 'opts',
'ARRAY(0x268c5a8)', 'usage', ...) called at
/home/moritz/.cpanm/work/1303372530.31041/Getopt-Long-Descriptive-0.089/blib/lib/Getopt/Long/Descriptive.pm
line 413
# Getopt::Long::Descriptive::__ANON__('test %o',
'ARRAY(0x2501ff8)') called at t/descriptive.t line 20
# eval {...} called at t/descriptive.t line 19
# main::is_opt('ARRAY(0x25216c8)', 'ARRAY(0x2521770)',
'HASH(0x268cb48)', 'basic usage, passed-in') called at t/descriptive.t
line 107'
# at t/descriptive.t line 40.
# got: '"one_of" is not an allowed validation spec key
# at
/home/moritz/.cpanm/work/1303372530.31041/Getopt-Long-Descriptive-0.089/blib/lib/Getopt/Long/Descriptive.pm
line 486
# eval {...} called at
/home/moritz/.cpanm/work/1303372530.31041/Getopt-Long-Descriptive-0.089/blib/lib/Getopt/Long/Descriptive.pm
line 484
# Getopt::Long::Descriptive::_validate_with('name', 'bar',
'params', 'HASH(0x286d3a0)', 'spec', 'HASH(0x25217a0)', 'opts',
'ARRAY(0x268c5a8)', 'usage', ...) called at
/home/moritz/.cpanm/work/1303372530.31041/Getopt-Long-Descriptive-0.089/blib/lib/Getopt/Long/Descriptive.pm
line 413
# Getopt::Long::Descriptive::__ANON__('test %o',
'ARRAY(0x2501ff8)') called at t/descriptive.t line 20
# eval {...} called at t/descriptive.t line 19
# main::is_opt('ARRAY(0x25216c8)', 'ARRAY(0x2521770)',
'HASH(0x268cb48)', 'basic usage, passed-in') called at t/descriptive.t
line 107'
# expected: ''
Bumping the prereq version of Params::Validate to 0.97 made all tests
pass on my machine (Debian GNU/Linux 6.0.1)