Skip Menu |

This queue is for tickets about the Inline-Awk CPAN distribution.

Report information
The Basics
Id: 121648
Status: new
Priority: 0/
Queue: Inline-Awk

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

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



Subject: Fails tests with no '.' in @INC
In perl 5.26 the "." is removed from @INC. This is causing the test suite to fail: $ make test PERL_DL_NONLAZY=1 "/opt/perl-5.26.0-RC1/bin/perl" "-Iblib/lib" "-Iblib/arch" test.pl 1..1 Can't locate Awk.pm in @INC (you may need to install the Awk module) (@INC contains: blib/lib blib/arch /opt/perl-5.26.0-RC1/lib/site_perl/5.26.0/x86_64-linux /opt/perl-5.26.0-RC1/lib/site_perl/5.26.0 /opt/perl-5.26.0-RC1/lib/5.26.0/x86_64-linux /opt/perl-5.26.0-RC1/lib/5.26.0) at test.pl line 5. BEGIN failed--compilation aborted at test.pl line 5. not ok 1 Makefile:842: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 2 (Note that this does not happen (yet) if running the tests within the CPAN.pm shell) A possible fix could look like this: diff --git a/test.pl b/test.pl index 5646e8f..40ebfd1 100644 --- a/test.pl +++ b/test.pl @@ -2,7 +2,7 @@ BEGIN { $| = 1; print "1..1\n"; } END {print "not ok 1\n" unless $loaded;} -use Awk; +require Inline::Awk; $loaded = 1;