Subject: | t/01_inc_import.t: Needs updating to work with perl-5.32 |
Reference: https://github.com/Perl/perl5/issues/17590
A change in the Perl 5 core distribution which will probably go in to perl-5.32 has triggered a test failure in t/01_inc_import.t in the ExtUtils-MY_Metafile distribution. The test failure looks like this:
#####
$ /tmp/blead/bin/prove -I/tmp/blead/lib -vb t/01_inc_import.t
t/01_inc_import.t ..
1..2
ok 1 - use ExtUtils::MY_Metafile;
not ok 2 - [default] eval: Attempt to reload inc/ExtUtils/MY_Metafile.pm aborted.
# Compilation failed in require at (eval 13) line 1.
# BEGIN failed--compilation aborted at (eval 13) line 1.
#
# Failed test '[default] eval: Attempt to reload inc/ExtUtils/MY_Metafile.pm aborted.
# Compilation failed in require at (eval 13) line 1.
# BEGIN failed--compilation aborted at (eval 13) line 1.
# '
# at t/01_inc_import.t line 36.
# Looks like you failed 1 test of 2.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
Test Summary Report
-------------------
t/01_inc_import.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 2
Non-zero exit status: 1
#####
The patch attached should resolve the problem (but should be tested against perls earlier than 5.32).
Thank you very much.
Jim Keenan
Subject: | ghi-17590-MY_Metafile.diff |
--- t/01_inc_import.t.orig 2020-02-27 21:25:37.744713546 -0500
+++ t/01_inc_import.t 2020-02-27 21:31:38.939674461 -0500
@@ -23,7 +23,7 @@
#
sub setup
{
- $INC{"inc/ExtUtils/MY_Metafile.pm"} = $INC{"ExtUtils/MY_Metafile"};
+ $INC{"inc/ExtUtils/MY_Metafile.pm"}++;
}
# -----------------------------------------------------------------------------