Subject: | t/basic.t fails with "The get_attribute_map method has been deprecated" |
MooseX::Role::Cmd fails to pass it's tests on Windows XP, Perl 5.8.8
with messages of the form "The get_attribute_map method has been
deprecated".
I also see "Cannot determine perl version info from
lib/MooseX/Role/Cmd.pm" during the "perl Makefile.PL" stage.
I tried with "cpan MooseX::Role::Cmd", and with the .gz download. Same
messages.
C:\temp\MooseX-Role-Cmd-0.06>nmake test
Microsoft (R) Program Maintenance Utility Version 7.00.9466
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/basic.t
t/execution-Failure.t t/load.t t/traits.t
t/basic.t .............. 1/7 Set up gcc environment - 3.4.5 (mingw special)
The get_attribute_map method has been deprecated.
at C:/Perl/site/lib/Class/MOP/Deprecated.pm line 210
Class::MOP::Class::get_attribute_map('Moose::Meta::Class=HASH(0x1fee9b8)')
called at C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 148
MooseX::Role::Cmd::cmd_args('Test::Cmd::Perl=HASH(0x2089ac4)')
called at C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 121
MooseX::Role::Cmd::run('Test::Cmd::Perl=HASH(0x2089ac4)') called
at t/lib/Test/Cmd/Perl.pm line 12
Test::Cmd::Perl::output('Test::Cmd::Perl=HASH(0x2089ac4)')
called at t/basic.t line 18
Could not find or check module 'IPC::Run' [THIS MAY BE A PROBLEM!] at
C:/Perl/site/lib/IPC/Cmd.pm line 112
error running 'C:\Perl\bin\perl.EXE': 'C:\Perl\bin\perl.EXE -e print(
join "/", @ARGV ), "\n"' exited with value 255 at
C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 127
MooseX::Role::Cmd::run('Test::Cmd::Perl=HASH(0x2089ac4)') called
at t/lib/Test/Cmd/Perl.pm line 12
Test::Cmd::Perl::output('Test::Cmd::Perl=HASH(0x2089ac4)')
called at t/basic.t line 18
# Looks like you planned 7 tests but ran 4.
# Looks like your test exited with 255 just after 4.
t/basic.t .............. Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 3/7 subtests
t/execution-Failure.t .. 1/? The get_attribute_map method has been
deprecated.
at C:/Perl/site/lib/Class/MOP/Deprecated.pm line 210
Class::MOP::Class::get_attribute_map() called at
C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 148
MooseX::Role::Cmd::cmd_args() called at
C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 121
MooseX::Role::Cmd::run() called at t/execution-Failure.t line 28
Test::Exception::throws_ok() called at t/execution-Failure.t line 28
t/execution-Failure.t .. ok
t/load.t ............... ok
t/traits.t ............. 1/10 The get_attribute_map method has been
deprecated.
at C:/Perl/site/lib/Class/MOP/Deprecated.pm line 210
Class::MOP::Class::get_attribute_map('Moose::Meta::Class=HASH(0x20f538c)')
called at C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 148
MooseX::Role::Cmd::cmd_args('Test::Cmd::Dir=HASH(0x232e408)')
called at t/traits.t line 40
The get_attribute_map method has been deprecated.
at C:/Perl/site/lib/Class/MOP/Deprecated.pm line 210
Class::MOP::Class::get_attribute_map('Moose::Meta::Class=HASH(0x20f3058)')
called at C:\temp\MooseX-Role-Cmd-0.06\blib\lib/MooseX/Role/Cmd.pm line 148
MooseX::Role::Cmd::cmd_args('Test::Cmd::DirWithTraits=HASH(0x2383278)')
called at t/traits.t line 54
t/traits.t ............. ok
Test Summary Report
-------------------
t/basic.t (Wstat: 65280 Tests: 4 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 7 tests but ran 4.
Files=4, Tests=19, 3 wallclock secs ( 0.08 usr + 0.00 sys = 0.08 CPU)
Result: FAIL
Failed 1/4 test programs. 0/19 subtests failed.
NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0xff'
Stop.