diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2013-11-04 22:36:32 +0000 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2013-11-04 23:06:00 +0000 |
commit | 6e4bdc3ffe25643a77ba250924cd181f4d88cbeb (patch) | |
tree | 0a6af0fe424c3f267ed3f64bee156bc73caa0f40 /cpan/Module-Build/lib/Module/Build/Base.pm | |
parent | 7d0878889f9697b5ebc987ab2d4d565b0871109f (diff) | |
download | perl-6e4bdc3ffe25643a77ba250924cd181f4d88cbeb.tar.gz |
Update Module-Build to CPAN version 0.4008
[DELTA]
0.4008 - Mon Nov 4 23:10:54 CET 2013
[BUG FIXES]
- Fix test failing on ancient perls <= 5.8.1 [Peter Rabbitson]
- Do not set default switches in Test::Harness; not even -w [Leon Timmermans]
[DOCUMENTATION]
- Fix a couple more broken links to CPAN::META::Spec that should
have been CPAN::Meta::Spec. [Reported by Mike Doherty]
Diffstat (limited to 'cpan/Module-Build/lib/Module/Build/Base.pm')
-rw-r--r-- | cpan/Module-Build/lib/Module/Build/Base.pm | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/cpan/Module-Build/lib/Module/Build/Base.pm b/cpan/Module-Build/lib/Module/Build/Base.pm index 706ed4f5d0..24fcbd0850 100644 --- a/cpan/Module-Build/lib/Module/Build/Base.pm +++ b/cpan/Module-Build/lib/Module/Build/Base.pm @@ -6,7 +6,7 @@ use strict; use vars qw($VERSION); use warnings; -$VERSION = '0.4007'; +$VERSION = '0.4008'; $VERSION = eval $VERSION; BEGIN { require 5.006001 } @@ -2760,28 +2760,9 @@ sub run_tap_harness { sub run_test_harness { my ($self, $tests) = @_; require Test::Harness; - my $p = $self->{properties}; - # Work around a Test::Harness bug that loses the particular perl - # we're running under. $self->perl is trustworthy, but $^X isn't. - local $^X = $self->perl; - - # Do everything in our power to work with all versions of Test::Harness - local ($Test::Harness::verbose, - $Test::Harness::Verbose, - $ENV{TEST_VERBOSE}, - $ENV{HARNESS_VERBOSE}) = ($p->{verbose} || 0) x 4; - - my @harness_switches = $self->harness_switches; - return Test::Harness::runtests(@$tests) unless @harness_switches; # Nothing to modify - - local $Test::Harness::switches = join ' ', grep defined, $Test::Harness::switches, @harness_switches; - local $Test::Harness::Switches = join ' ', grep defined, $Test::Harness::Switches, @harness_switches; - local $ENV{HARNESS_PERL_SWITCHES} = join ' ', grep defined, $ENV{HARNESS_PERL_SWITCHES}, @harness_switches; - - $Test::Harness::switches = undef unless length $Test::Harness::switches; - $Test::Harness::Switches = undef unless defined $Test::Harness::Switches and length $Test::Harness::Switches; - delete $ENV{HARNESS_PERL_SWITCHES} unless length $ENV{HARNESS_PERL_SWITCHES}; + local $Test::Harness::verbose = $self->verbose || 0; + local $Test::Harness::switches = join ' ', $self->harness_switches; Test::Harness::runtests(@$tests); } |