Subject: | [PATCH] test failing with 5.6.2 with newer modules |
I just discovered that Module-Info.t fails nowadays with perl 5.6.2 if
the user has upgraded a few of the modules in the core like strict and
vars. I attach a simple patch to correct the test.
I really appreaciate the Module::Info interface and would be glad to
have it available when I (occasionally) dig into 5.6.
Hope you like it! If not, it's not a big deal (I have rated Unimportant
already)
Thanks,
Subject: | Module-Info-0.32-5.6.2.diff |
--- t/Module-Info.t~ 2013-02-02 21:37:11.061456489 +0100
+++ t/Module-Info.t 2013-02-02 21:47:24.644286795 +0100
@@ -96,7 +96,8 @@
my @mods = $mod_info->modules_used;
my @expected = qw(strict File::Spec Config
Carp IPC::Open3 vars Safe);
- push @expected, 'Exporter' if $] < 5.008;
+ push @expected, 'Exporter' if grep /^Exporter$/, @mods;
+ # many old versions of these modules loaded the Exporter:
is( @mods, @expected, 'Found all modules used' );
is_deeply( [sort @mods], [sort @expected],
' the right ones' );