diff options
Diffstat (limited to 'lib/CPAN/t/version.t')
-rw-r--r-- | lib/CPAN/t/version.t | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/CPAN/t/version.t b/lib/CPAN/t/version.t index 01de0069e4..eb1e55728b 100644 --- a/lib/CPAN/t/version.t +++ b/lib/CPAN/t/version.t @@ -1,15 +1,9 @@ # test if our own version numbers meet expectations -BEGIN { - if (! eval { require warnings; 1 }) { - printf "1..1\nok 1 # warnings not available: skipping %s\n", __FILE__; - exit; - } -} - use strict; -use warnings; -my @m = qw(CPAN CPAN::Admin CPAN::FirstTime CPAN::Nox CPAN::Version); +eval 'use warnings'; +my @m = qw(CPAN CPAN::FirstTime CPAN::Nox CPAN::Version); +push @m, 'CPAN::Admin' unless $ENV{PERL_CORE}; use Test::More; plan(tests => scalar @m); |