Skip to content

Commit

Permalink
Tagging 2.99_07, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyA committed Nov 1, 2007
1 parent 90b3c34 commit 2fee37f
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 20 deletions.
7 changes: 7 additions & 0 deletions Changes
@@ -1,5 +1,12 @@
Revision history for Test-Harness Revision history for Test-Harness


2.99_07 2007-11-01
- Fix for #21938: Unable to handle circular links
- Fix for #24926: prove -b and -l should use absolute paths
- Fixed prove switches. Big oops. How the hell did we miss that?
- Consolidated quiet, really_quiet, verbose into verbosity.
- Various VMS related fixes to tests

2.99_06 2007-10-30 2.99_06 2007-10-30
- Added skip_all method to TAP::Parser. - Added skip_all method to TAP::Parser.
- Display reason for skipped tests. - Display reason for skipped tests.
Expand Down
1 change: 1 addition & 0 deletions MANIFEST
Expand Up @@ -56,6 +56,7 @@ t/compat/failure.t
t/compat/inc-propagation.t t/compat/inc-propagation.t
t/compat/inc_taint.t t/compat/inc_taint.t
t/compat/nonumbers.t t/compat/nonumbers.t
t/compat/regression.t
t/compat/test-harness-compat.t t/compat/test-harness-compat.t
t/compat/version.t t/compat/version.t
t/console.t t/console.t
Expand Down
16 changes: 11 additions & 5 deletions lib/App/Prove.pm
Expand Up @@ -324,16 +324,16 @@ sub _get_switches {


# notes that -T or -t must be at the front of the switches! # notes that -T or -t must be at the front of the switches!
if ( $self->taint_fail ) { if ( $self->taint_fail ) {
push @switches, 'T'; push @switches, '-T';
} }
elsif ( $self->taint_warn ) { elsif ( $self->taint_warn ) {
push @switches, 't'; push @switches, '-t';
} }
if ( $self->warnings_fail ) { if ( $self->warnings_fail ) {
push @switches, 'W'; push @switches, '-W';
} }
elsif ( $self->warnings_warn ) { elsif ( $self->warnings_warn ) {
push @switches, 'w'; push @switches, '-w';
} }


return @switches ? \@switches : (); return @switches ? \@switches : ();
Expand All @@ -352,6 +352,9 @@ sub _get_lib {
push @libs, @{ $self->includes }; push @libs, @{ $self->includes };
} }


#24926
@libs = map { File::Spec->rel2abs($_) } @libs;

# Huh? # Huh?
return @libs ? \@libs : (); return @libs ? \@libs : ();
} }
Expand Down Expand Up @@ -400,7 +403,10 @@ sub _expand_dir {
my @tests; my @tests;
if ( $self->recurse ) { if ( $self->recurse ) {
find( find(
sub { -f && /\.t$/ && push @tests => $File::Find::name }, { follow => 1, #21938
wanted =>
sub { -f && /\.t$/ && push @tests => $File::Find::name }
},
$dir $dir
); );
} }
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/Harness.pm
Expand Up @@ -191,7 +191,7 @@ sub _new_harness {
# Get the parts of @INC which are changed from the stock list AND # Get the parts of @INC which are changed from the stock list AND
# preserve reordering of stock directories. # preserve reordering of stock directories.
sub _filtered_inc { sub _filtered_inc {
my @inc = @INC; my @inc = grep { !ref } @INC; #28567


if (IS_VMS) { if (IS_VMS) {


Expand Down
19 changes: 19 additions & 0 deletions t/compat/regression.t
@@ -0,0 +1,19 @@
#!/usr/bin/perl -w

use strict;
use lib 't/lib';

use Test::More tests => 2;

BEGIN {
use_ok('Test::Harness');
}

{
#28567
unshift @INC, 'wibble';
my @before = Test::Harness::_filtered_inc();
unshift @INC, sub {die};
my @after = Test::Harness::_filtered_inc();
is_deeply \@after, \@before, 'subref removed from @INC';
}
34 changes: 20 additions & 14 deletions t/prove.t
Expand Up @@ -4,6 +4,7 @@ use strict;
use lib 't/lib'; use lib 't/lib';


use Test::More; use Test::More;
use File::Spec;


use App::Prove; use App::Prove;


Expand Down Expand Up @@ -40,6 +41,11 @@ sub _shuffle {


package main; package main;


sub mabs {
my $ar = shift;
return [ map { File::Spec->rel2abs($_) } @$ar ];
}

{ {
my @import_log = (); my @import_log = ();


Expand Down Expand Up @@ -202,7 +208,7 @@ BEGIN { # START PLAN
}, },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ lib => ['blib/lib'], { lib => mabs( ['blib/lib'] ),
verbosity => 0 verbosity => 0
}, },
'TAP::Harness', 'TAP::Harness',
Expand Down Expand Up @@ -314,7 +320,7 @@ BEGIN { # START PLAN
}, },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ lib => [qw( four five six )], { lib => mabs( [qw( four five six )] ),
verbosity => 0 verbosity => 0
}, },
'TAP::Harness', 'TAP::Harness',
Expand All @@ -332,7 +338,7 @@ BEGIN { # START PLAN
}, },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ lib => ['lib'], { lib => mabs( ['lib'] ),
verbosity => 0 verbosity => 0
}, },
'TAP::Harness', 'TAP::Harness',
Expand Down Expand Up @@ -386,7 +392,7 @@ BEGIN { # START PLAN
}, },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ verbosity => -1 { verbosity => -1
}, },
'TAP::Harness', 'TAP::Harness',
'one', 'two', 'three' 'one', 'two', 'three'
Expand All @@ -403,7 +409,7 @@ BEGIN { # START PLAN
}, },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ verbosity => -2 { verbosity => -2
}, },
'TAP::Harness', 'TAP::Harness',
'one', 'two', 'three' 'one', 'two', 'three'
Expand Down Expand Up @@ -470,7 +476,7 @@ BEGIN { # START PLAN
}, },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ switches => ['T'], { switches => ['-T'],
verbosity => 0 verbosity => 0
}, },
'TAP::Harness', 'TAP::Harness',
Expand All @@ -488,7 +494,7 @@ BEGIN { # START PLAN
}, },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ switches => ['t'], { switches => ['-t'],
verbosity => 0 verbosity => 0
}, },
'TAP::Harness', 'TAP::Harness',
Expand Down Expand Up @@ -523,7 +529,7 @@ BEGIN { # START PLAN
}, },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ switches => ['W'], { switches => ['-W'],
verbosity => 0 verbosity => 0
}, },
'TAP::Harness', 'TAP::Harness',
Expand All @@ -541,7 +547,7 @@ BEGIN { # START PLAN
}, },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ switches => ['w'], { switches => ['-w'],
verbosity => 0 verbosity => 0
}, },
'TAP::Harness', 'TAP::Harness',
Expand Down Expand Up @@ -629,7 +635,7 @@ BEGIN { # START PLAN
expect => { lib => 1 }, expect => { lib => 1 },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ lib => ['lib'], { lib => mabs( ['lib'] ),
verbosity => 0 verbosity => 0
}, },
'TAP::Harness', 'TAP::Harness',
Expand All @@ -646,7 +652,7 @@ BEGIN { # START PLAN
expect => { lib => 1 }, expect => { lib => 1 },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ lib => ['lib'], { lib => mabs( ['lib'] ),
verbosity => 0 verbosity => 0
}, },
'TAP::Harness', 'TAP::Harness',
Expand All @@ -663,7 +669,7 @@ BEGIN { # START PLAN
expect => { blib => 1 }, expect => { blib => 1 },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ lib => ['blib/lib'], { lib => mabs( ['blib/lib'] ),
verbosity => 0 verbosity => 0
}, },
'TAP::Harness', 'TAP::Harness',
Expand All @@ -680,7 +686,7 @@ BEGIN { # START PLAN
expect => { blib => 1 }, expect => { blib => 1 },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ lib => ['blib/lib'], { lib => mabs( ['blib/lib'] ),
verbosity => 0 verbosity => 0
}, },
'TAP::Harness', 'TAP::Harness',
Expand Down Expand Up @@ -827,7 +833,7 @@ BEGIN { # START PLAN
expect => { quiet => 1 }, expect => { quiet => 1 },
runlog => [ runlog => [
[ '_runtests', [ '_runtests',
{ verbosity => -1 { verbosity => -1
}, },
'TAP::Harness', 'TAP::Harness',
$dummy_test $dummy_test
Expand Down

0 comments on commit 2fee37f

Please sign in to comment.