Skip Menu |

This queue is for tickets about the File-Attributes CPAN distribution.

Report information
The Basics
Id: 56221
Status: open
Priority: 0/
Queue: File-Attributes

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.04



Subject: Test fails with perl 5.12.0 (version.pm-related?)
Tests fail with perl 5.12.0-RC0: ... Prototype after '@' for File::Attributes::_foreach_plugin : @& at /var/tmp/CPAN-build/File-Attributes-0.04-WJHVKr/blib/lib/File/Attributes.pm line 27. Invalid version format (non-numeric data) at t/override-notapplicable.t line 19. # Looks like you planned 9 tests but ran 1. # Looks like your test exited with 255 just after 1. t/override-notapplicable.t .. ... The "prototype" warning does not seem to be fatal, but is also new with perl 5.12.0. The "version" error is fatal and new with perl 5.12.0. With 5.10.1 there was just a warning: Version string 'foo-o-matic' contains invalid data; ignoring: 'foo-o-matic' at t/override-notapplicable.t line 19. My guess is that the new version.pm version parsing is causing the problem, because even the "lax" parsing does not handle the problematic version number. Regards, Slaven
I've attached a patch to get the 00-load.t test to pass. Here is how I used it (in this case, the patch is located in /tmp/): $ cpanm --prompt File::Attributes ... Building and testing File-Attributes-0.04 ... FAIL Testing File-Attributes-0.04 failed. You can s)kip, r)etry, f)orce install or l)ook ? [s] l ... $ patch -b -p0 < /tmp/File-Attributes-Test.pm.patch patching file t/lib/File/Attributes/Test.pm $ exit Testing File-Attributes-0.04 failed. You can s)kip, r)etry, f)orce install or l)ook ? [s] r Successfully installed File-Attributes-0.04 -Tommy On Fri Apr 02 06:50:03 2010, SREZIC wrote: Show quoted text
> Tests fail with perl 5.12.0-RC0: > > ... > Prototype after '@' for File::Attributes::_foreach_plugin : @& at >
/var/tmp/CPAN-build/File-Attributes-0.04-WJHVKr/blib/lib/File/Attributes.pm Show quoted text
> line 27. > Invalid version format (non-numeric data) at t/override-notapplicable.t > line 19. > # Looks like you planned 9 tests but ran 1. > # Looks like your test exited with 255 just after 1. > t/override-notapplicable.t .. > ... > > The "prototype" warning does not seem to be fatal, but is also new with > perl 5.12.0. > > The "version" error is fatal and new with perl 5.12.0. With 5.10.1 there > was just a warning: > > Version string 'foo-o-matic' contains invalid data; ignoring: > 'foo-o-matic' at t/override-notapplicable.t line 19. > > My guess is that the new version.pm version parsing is causing the > problem, because even the "lax" parsing does not handle the problematic > version number. > > Regards, > Slaven
Subject: File-Attributes-Test.pm.patch
--- t/lib/File/Attributes/Test.pm.orig 2011-01-02 15:10:33.000000000 -0800 +++ t/lib/File/Attributes/Test.pm 2011-01-02 15:13:42.000000000 -0800 @@ -6,7 +6,7 @@ package File::Attributes::Test; use base 'File::Attributes::Base'; our $VERSION = - 'foo-o-matic'; + '42'; my %attributes; my $IGNORE = qr/NONONO/;
Ditto w/ v0.04 in 5.16 w/ simple use() ``` $ perl -MFile::Attributes -e 'print "oh hai $]\n"' Prototype after '@' for File::Attributes::_foreach_plugin : @& at /Users/dmuey/perl5/perlbrew/perls/perl-5.16.0/lib/site_perl/5.16.0/File/Attributes.pm line 27. oh hai 5.016000 $ ``` probably anything past the version it started I reckon :)