From: Prymmer/Kahn Date: Wed, 1 Aug 2001 09:24:23 +0000 (-0700) Subject: fixups for t/harness X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=122a03757d5ebab50b5173ec762435d9b729179f;p=p5sagit%2Fp5-mst-13.2.git fixups for t/harness Message-ID: p4raw-id: //depot/perl@11535 --- diff --git a/t/harness b/t/harness index 6f111f1..d5ddb51 100644 --- a/t/harness +++ b/t/harness @@ -5,10 +5,9 @@ BEGIN { chdir 't' if -d 't'; - unshift @INC, '../lib'; + @INC = '../lib'; # pick up only this build's lib $ENV{PERL5LIB} = '../lib'; # so children will see it too } -use lib '../lib'; use Test::Harness; @@ -35,18 +34,26 @@ foreach (keys %datahandle) { unlink "$_.t"; } +my @tests = (); + if (@ARGV) { @tests = @ARGV; } else { unless (@tests) { - @tests = ; + push @tests, ; + push @tests, ; + push @tests, ; + push @tests, ; + push @tests, ; + push @tests, ; + push @tests, ; use File::Spec; my $updir = File::Spec->updir; - my $mani = File::Spec->catdir(File::Spec->updir, "MANIFEST"); + my $mani = File::Spec->catfile(File::Spec->updir, "MANIFEST"); if (open(MANI, $mani)) { while () { # similar code in t/TEST if (m!^(ext/\S+/([^/]+\.t|test\.pl)|lib/\S+?(\.t|test\.pl))\s!) { - push @tests, File::Spec->catdir($updir, $1); + push @tests, File::Spec->catfile($updir, $1); } } } else {