Skip Menu |

This queue is for tickets about the PITA-Scheme CPAN distribution.

Report information
The Basics
Id: 56007
Status: resolved
Priority: 0/
Queue: PITA-Scheme

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

Bug Information
Severity: (no value)
Broken in: 0.42
Fixed in: 0.43



Subject: perl -v test does not pass with perl-5.12.0-RC0
The perl discovery test fails with 5.12.0-RC0: The path /usr/perl-5.12.0-RC0/bin/perl is not Perl at t/05_perl_discovery.t line 49 # Looks like you planned 11 tests but ran 3. # Looks like your test exited with 255 just after 3. t/05_perl_discovery.t .. Problem is that "perl -v" now emits an extra newline at the beginning (which is probably not intended), but the regexp in PITA/Scheme/Perl/Discovery.pm just catches the beginning of the string, not the beginning of a line. Regards, Slaven
On Sat Mar 27 17:09:28 2010, SREZIC wrote: Show quoted text
> The perl discovery test fails with 5.12.0-RC0: > > The path /usr/perl-5.12.0-RC0/bin/perl is not Perl at > t/05_perl_discovery.t line 49 > # Looks like you planned 11 tests but ran 3. > # Looks like your test exited with 255 just after 3. > t/05_perl_discovery.t .. > > Problem is that "perl -v" now emits an extra newline at the beginning > (which is probably not intended), but the regexp in > PITA/Scheme/Perl/Discovery.pm just catches the beginning of the string, > not the beginning of a line.
Ah, no, perl -v always had an empty line at beginning. The real problem is this change: $ perl5.8.9 -v This is perl, v5.8.9 built for i386-freebsd-64int $ /usr/perl-5.12.0-RC0/bin/perl -v This is perl 5, version 12, subversion 0 (v5.12.0) built for i386-freebsd So the regexp should probably be changed to match /This is perl(\s5)?,/ Regards, Slaven
On 2010-03-29 06:40:19, SREZIC wrote: Show quoted text
> On Sat Mar 27 17:09:28 2010, SREZIC wrote:
> > The perl discovery test fails with 5.12.0-RC0: > > > > The path /usr/perl-5.12.0-RC0/bin/perl is not Perl at > > t/05_perl_discovery.t line 49 > > # Looks like you planned 11 tests but ran 3. > > # Looks like your test exited with 255 just after 3. > > t/05_perl_discovery.t .. > > > > Problem is that "perl -v" now emits an extra newline at the beginning > > (which is probably not intended), but the regexp in > > PITA/Scheme/Perl/Discovery.pm just catches the beginning of the string, > > not the beginning of a line.
> > Ah, no, perl -v always had an empty line at beginning. The real problem > is this change: > > $ perl5.8.9 -v > > This is perl, v5.8.9 built for i386-freebsd-64int > > $ /usr/perl-5.12.0-RC0/bin/perl -v > > This is perl 5, version 12, subversion 0 (v5.12.0) built for i386-freebsd > > So the regexp should probably be changed to match /This is perl(\s5)?,/ >
It looks fixed in 0.43, maybe with this change: https://metacpan.org/diff/file?target=ADAMK%2FPITA-Scheme-0.43%2F&source=ADAMK%2FPITA-Scheme-0.42%2F#lib/PITA/Scheme/Perl/Discovery.pm