Skip Menu |

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

Report information
The Basics
Id: 121180
Status: new
Priority: 0/
Queue: Devel-Refactor

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: Tests fail when no '.' in @INC ( )
When no '.' is in @INC on Perl 5.25.11 or newer ( the default when executing by hand, or when PERL_USE_UNSAFE_INC=0 is set in ENV )
Tests fail as follows:

PERL_DL_NONLAZY=1 "/home/ryan/perl5/perlbrew/perls/perl-blead/bin/perl5.26.0" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t

#   Failed test 'use Refactor;'
#   at t/basic.t line 10.
#     Tried to use 'Refactor'.
#     Error:  Can't locate Refactor.pm in @INC (you may need to install the Refactor module) (@INC contains: /home/ryan/.cpanm/work/1492249247.5322/Devel-Refactor-0.05/blib/lib /home/ryan/.cpanm/work/1492249247.5322/Devel-Refactor-0.05/blib/arch /home/ryan/perl5/perlbrew/perls/perl-blead/lib/site_perl/5.26.0/x86_64-linux /home/ryan/perl5/perlbrew/perls/perl-blead/lib/site_perl/5.26.0 /home/ryan/perl5/perlbrew/perls/perl-blead/lib/5.26.0/x86_64-linux /home/ryan/perl5/perlbrew/perls/perl-blead/lib/5.26.0) at t/basic.t line 10.
# BEGIN failed--compilation aborted at t/basic.t line 10.
Can't locate object method "new" via package "Devel::Refactor" (perhaps you forgot to load "Devel::Refactor"?) at t/basic.t line 13.
# Looks like your test exited with 255 just after 1.
t/basic.t ............... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 7/7 subtests 
t/extract_subroutine.t .. ok
t/rename_subroutine.t ... ok

See Also: http://cpan.simcop2387.info/logs/Devel::Refactor_incfailure.log 

-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )
Subject: 0001-t-basic.t-Fix-test-failure-on-5.26.patch
From f7e1813ec2d1be584499f5f2a968dc1bf430fe5b Mon Sep 17 00:00:00 2001 From: Kent Fredric <kentnl@gentoo.org> Date: Sat, 7 Oct 2017 00:22:26 +1300 Subject: t/basic.t: Fix test failure on 5.26 use_ok should use the fully qualified name as it runs with blib during `make test` Bug: https://rt.cpan.org/Public/Bug/Display.html?id=121180 Bug: https://bugs.gentoo.org/615738 --- t/basic.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/basic.t b/t/basic.t index dd8cefc..8f09e23 100755 --- a/t/basic.t +++ b/t/basic.t @@ -7,7 +7,7 @@ use Data::Dumper; BEGIN { # diag "\@INC contains:\n", join("\n",@INC); - use_ok 'Refactor'; + use_ok 'Devel::Refactor'; } my $rf = Devel::Refactor->new; -- 2.14.1