Skip Menu |

This queue is for tickets about the Devel-Scope CPAN distribution.

Report information
The Basics
Id: 124342
Status: resolved
Priority: 0/
Queue: Devel-Scope

People
Owner: XXFELIXXX [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

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



Subject: Tests should use $^X
The test suite still may fail on some perl installations: ... # Failed test 'Caught invalid environmental variable' # at t/devel-scope.t line 21. # Got: Can't locate Scope/Upper.pm in @INC (you may need to install the Scope::Upper module) (@INC contains: /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/blib/lib /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/blib/arch /usr/local/lib/perl5/site_perl/mach/5.20 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.20/mach /usr/local/lib/perl5/5.20 /usr/local/lib/perl5/site_perl/5.20 /usr/local/lib/perl5/site_perl/5.20/mach .) at /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/blib/lib/Devel/Scope.pm line 8. # BEGIN failed--compilation aborted at /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/blib/lib/Devel/Scope.pm line 8. # Compilation failed in require at /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/t/devel-scope.fixture line 4. # BEGIN failed--compilation aborted at /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/t/devel-scope.fixture line 4. ... The @INC path suggest that the system perl is used here, not the perl used for the current build (which does not necessarily be in the user's $PATH). Best is to use $^X instead of "perl" for calling perl scripts in test suites.
Thanks for the helpful suggestion! I have refactored the tests to use $^X and uploaded the changes as version 0.06 Hopefully that will get more of them to pass. Felix On Tue Feb 06 12:51:19 2018, SREZIC wrote: Show quoted text
> The test suite still may fail on some perl installations: > > ... > # Failed test 'Caught invalid environmental variable' > # at t/devel-scope.t line 21. > # Got: Can't locate Scope/Upper.pm in @INC (you may need to install > the Scope::Upper module) (@INC contains: > /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/blib/lib > /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/blib/arch > /usr/local/lib/perl5/site_perl/mach/5.20 > /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.20/mach > /usr/local/lib/perl5/5.20 /usr/local/lib/perl5/site_perl/5.20 > /usr/local/lib/perl5/site_perl/5.20/mach .) at > /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05- > 2/blib/lib/Devel/Scope.pm line 8. > # BEGIN failed--compilation aborted at > /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05- > 2/blib/lib/Devel/Scope.pm line 8. > # Compilation failed in require at > /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/t/devel- > scope.fixture line 4. > # BEGIN failed--compilation aborted at > /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/t/devel- > scope.fixture line 4. > ... > > The @INC path suggest that the system perl is used here, not the perl > used for the current build (which does not necessarily be in the > user's $PATH). Best is to use $^X instead of "perl" for calling perl > scripts in test suites.
Seems to be passing everything now in version 0.06. Closing ticket. Thanks, Felix On Tue Feb 06 20:39:49 2018, XXFELIXXX wrote: Show quoted text
> Thanks for the helpful suggestion! > > I have refactored the tests to use $^X and uploaded the changes as > version 0.06 > > Hopefully that will get more of them to pass. > > Felix > > On Tue Feb 06 12:51:19 2018, SREZIC wrote:
> > The test suite still may fail on some perl installations: > > > > ... > > # Failed test 'Caught invalid environmental variable' > > # at t/devel-scope.t line 21. > > # Got: Can't locate Scope/Upper.pm in @INC (you may need to install > > the Scope::Upper module) (@INC contains: > > /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/blib/lib > > /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/blib/arch > > /usr/local/lib/perl5/site_perl/mach/5.20 > > /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.20/mach > > /usr/local/lib/perl5/5.20 /usr/local/lib/perl5/site_perl/5.20 > > /usr/local/lib/perl5/site_perl/5.20/mach .) at > > /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05- > > 2/blib/lib/Devel/Scope.pm line 8. > > # BEGIN failed--compilation aborted at > > /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05- > > 2/blib/lib/Devel/Scope.pm line 8. > > # Compilation failed in require at > > /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/t/devel- > > scope.fixture line 4. > > # BEGIN failed--compilation aborted at > > /usr/home/eserte/.cpan/build/2018020609/Devel-Scope-0.05-2/t/devel- > > scope.fixture line 4. > > ... > > > > The @INC path suggest that the system perl is used here, not the perl > > used for the current build (which does not necessarily be in the > > user's $PATH). Best is to use $^X instead of "perl" for calling perl > > scripts in test suites.