Skip Menu |

This queue is for tickets about the Parse-RecDescent CPAN distribution.

Report information
The Basics
Id: 120415
Status: resolved
Worked: 2 min
Priority: 0/
Queue: Parse-RecDescent

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

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



Subject: Fails tests when no '.' in @INC

On 5.25.10 with -Ddefault_inc_excludes_dot

 

# Testing Parse::RecDescent 1.967013
t/00.load.t ............... ok

#   Failed test 'use'd a dependent precompiled parser: Can't locate TestParserdependent.pm in @INC (you may need to install the TestParserdependent module) (@INC contains: /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/site_perl/5.25.10/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/site_perl/5.25.10 /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/5.25.10/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/5.25.10) at (eval 14) line 1.
# BEGIN failed--compilation aborted at (eval 14) line 1.
# '
#   at t/precompile.t line 41.

#   Failed test 'ran a dependent precompiled parser'
#   at t/precompile.t line 54.

#   Failed test 'correct result from precompiled parser'
#   at t/precompile.t line 55.
#     Structures begin differing at:
#          $got = undef
#     $expected = ARRAY(0x1c33160)

#   Failed test 'use'd a standalone precompiled parser: Can't locate TestParserstandalone.pm in @INC (you may need to install the TestParserstandalone module) (@INC contains: /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/site_perl/5.25.10/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/site_perl/5.25.10 /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/5.25.10/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/5.25.10) at (eval 20) line 1.
# BEGIN failed--compilation aborted at (eval 20) line 1.
# '
#   at t/precompile.t line 41.

#   Failed test 'ran a standalone precompiled parser'
#   at t/precompile.t line 54.

#   Failed test 'correct result from precompiled parser'
#   at t/precompile.t line 55.
#     Structures begin differing at:
#          $got = undef
#     $expected = ARRAY(0x17e0c40)
# Looks like you failed 6 tests of 14.
t/precompile.t ............
Dubious, test returned 6 (wstat 1536, 0x600)
Failed 6/14 subtests
t/autotree.t .............. ok
Can't locate t/util.pl in @INC (@INC contains: /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/lib /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent-1.967013/blib/arch /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/site_perl/5.25.10/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/site_perl/5.25.10 /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/5.25.10/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc-nodot/lib/5.25.10) at t/leftop_cap.t line 29.
# Looks like your test exited with 2 before it could output anything.
t/leftop_cap.t ............
Dubious, test returned 2 (wstat 512, 0x200)
Failed 8/8 subtests
t/re_capture_return.t ..... ok
t/skip.t .................. ok
t/01.basics.t ............. ok
t/text.t .................. ok
t/skip_dynamic.t .......... ok
t/separated_repetition.t .. ok
t/reentry.t ............... ok
t/reproducible.t .......... ok

Test Summary Report
-------------------
t/precompile.t          (Wstat: 1536 Tests: 14 Failed: 6)
  Failed tests:  4, 6-7, 11, 13-14
  Non-zero exit status: 6
t/leftop_cap.t          (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 8 tests but ran 0.
Files=12, Tests=130,  1 wallclock secs ( 0.08 usr  0.03 sys +  2.39 cusr  0.35 csys =  2.85 CPU)
Result: FAIL



-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
 

On Mon Feb 27 03:00:12 2017, KENTNL wrote: Show quoted text
> On 5.25.10 with -Ddefault_inc_excludes_dot > > # Testing Parse::RecDescent 1.967013 > t/00.load.t ............... ok > > # Failed test 'use'd a dependent precompiled parser: Can't locate > TestParserdependent.pm in @INC (you may need to install the > TestParserdependent > module) (@INC contains: > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc- > nodot/lib/site_perl/5.25.10/x86_64-linux > /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc- > nodot/lib/site_perl/5.25.10 > /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc- > nodot/lib/5.25.10/x86_64-linux > /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc- > nodot/lib/5.25.10) at > (eval 14) line 1. > # BEGIN failed--compilation aborted at (eval 14) line 1. > # ' > # at t/precompile.t line 41. > > # Failed test 'ran a dependent precompiled parser' > # at t/precompile.t line 54. > > # Failed test 'correct result from precompiled parser' > # at t/precompile.t line 55. > # Structures begin differing at: > # $got = undef > # $expected = ARRAY(0x1c33160) > > # Failed test 'use'd a standalone precompiled parser: Can't locate > TestParserstandalone.pm in @INC (you may need to install the > TestParserstandalone module) (@INC contains: > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc- > nodot/lib/site_perl/5.25.10/x86_64-linux > /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc- > nodot/lib/site_perl/5.25.10 > /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc- > nodot/lib/5.25.10/x86_64-linux > /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc- > nodot/lib/5.25.10) at > (eval 20) line 1. > # BEGIN failed--compilation aborted at (eval 20) line 1. > # ' > # at t/precompile.t line 41. > > # Failed test 'ran a standalone precompiled parser' > # at t/precompile.t line 54. > > # Failed test 'correct result from precompiled parser' > # at t/precompile.t line 55. > # Structures begin differing at: > # $got = undef > # $expected = ARRAY(0x17e0c40) > # Looks like you failed 6 tests of 14. > t/precompile.t ............ > Dubious, test returned 6 (wstat 1536, 0x600) > Failed 6/14 subtests > t/autotree.t .............. ok > Can't locate t/util.pl in @INC (@INC contains: > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/lib > /home/kent/.cpanm/work/1488182087.25118/Parse-RecDescent- > 1.967013/blib/arch > /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc- > nodot/lib/site_perl/5.25.10/x86_64-linux > /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc- > nodot/lib/site_perl/5.25.10 > /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc- > nodot/lib/5.25.10/x86_64-linux > /home/kent/perl5/perlbrew/perls/5.25.10-nossp-sdbm-nopmc- > nodot/lib/5.25.10) at > t/leftop_cap.t line 29. > # Looks like your test exited with 2 before it could output anything. > t/leftop_cap.t ............ > Dubious, test returned 2 (wstat 512, 0x200) > Failed 8/8 subtests > t/re_capture_return.t ..... ok > t/skip.t .................. ok > t/01.basics.t ............. ok > t/text.t .................. ok > t/skip_dynamic.t .......... ok > t/separated_repetition.t .. ok > t/reentry.t ............... ok > t/reproducible.t .......... ok > > Test Summary Report > ------------------- > t/precompile.t (Wstat: 1536 Tests: 14 Failed: 6) > Failed tests: 4, 6-7, 11, 13-14 > Non-zero exit status: 6 > t/leftop_cap.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: Bad plan. You planned 8 tests but ran 0. > Files=12, Tests=130, 1 wallclock secs ( 0.08 usr 0.03 sys + 2.39 cusr > 0.35 csys > = 2.85 CPU) > Result: FAIL > > > > -- > - CPAN kentnl@cpan.org > - Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
The patch attached should address this problem and make Parse-RecDescent perl-5.26.0-ready. Assuming the patch is correct, a new CPAN release would be appreciated. Other CPAN libraries have Parse-RecDescent as a dependency. CPAN testers will be unable to evaluate the 5.26.0-readiness of those libraries until a new CPAN release of this library. Thank you very much. Jim Keenan
Subject: Parse-RecDescent.20170331.diff
diff -u -r /home/jkeenan/Downloads/Parse-RecDescent-1.967013/t/leftop_cap.t ./t/leftop_cap.t --- /home/jkeenan/Downloads/Parse-RecDescent-1.967013/t/leftop_cap.t 2012-01-26 01:14:34.000000000 -0500 +++ ./t/leftop_cap.t 2017-03-31 10:10:31.548045327 -0400 @@ -26,7 +26,7 @@ my $parser = new Parse::RecDescent($grammar) or die "Bad Grammar"; use Test::More tests=>8; -require 't/util.pl'; +require './t/util.pl'; my $text = "a + b - c + d"; diff -u -r /home/jkeenan/Downloads/Parse-RecDescent-1.967013/t/precompile.t ./t/precompile.t --- /home/jkeenan/Downloads/Parse-RecDescent-1.967013/t/precompile.t 2015-09-27 13:33:10.000000000 -0400 +++ ./t/precompile.t 2017-03-31 10:13:21.782220520 -0400 @@ -2,6 +2,7 @@ use warnings; use Parse::RecDescent; use Test::More tests => 14; +use lib '.'; # Turn off the "build a -standalone parser" precompile warning our $RD_HINT = 0;
Jim, thank you for the patch. I'll put this on my todo list for the weekend. On Fri Mar 31 10:18:17 2017, JKEENAN wrote: Show quoted text
> The patch attached should address this problem and make Parse- > RecDescent perl-5.26.0-ready. > > Assuming the patch is correct, a new CPAN release would be > appreciated. Other CPAN libraries have Parse-RecDescent as a > dependency. CPAN testers will be unable to evaluate the 5.26.0- > readiness of those libraries until a new CPAN release of this library. > > Thank you very much. > Jim Keenan
This should be fixed in v1.967014, uploaded to PAUSE just a moment ago, and available at https://github.com/jtbraun/Parse-RecDescent/releases/tag/v1.967014. Thank you for your bug report! Jeremy On Fri Mar 31 12:04:57 2017, jtbraun wrote: Show quoted text
> Jim, thank you for the patch. I'll put this on my todo list for the > weekend. > > On Fri Mar 31 10:18:17 2017, JKEENAN wrote:
> > The patch attached should address this problem and make Parse- > > RecDescent perl-5.26.0-ready. > > > > Assuming the patch is correct, a new CPAN release would be > > appreciated. Other CPAN libraries have Parse-RecDescent as a > > dependency. CPAN testers will be unable to evaluate the 5.26.0- > > readiness of those libraries until a new CPAN release of this > > library. > > > > Thank you very much. > > Jim Keenan