summaryrefslogtreecommitdiff
path: root/t/harness
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-08-26 20:55:36 +0100
committerNicholas Clark <nick@ccl4.org>2009-08-26 20:55:36 +0100
commite772598991ca5994af17ccfc75b507c64089f992 (patch)
tree51796aa30943d81498d6cf8fda8ac73978c2231e /t/harness
parenta3323f52209391b4b2c45b3e1feb26c6f51fb6fa (diff)
downloadperl-e772598991ca5994af17ccfc75b507c64089f992.tar.gz
No need to use File::Spec, as all names remain internal to perl.
(This will make merging the code in t/TEST and t/harness easier.)
Diffstat (limited to 't/harness')
-rw-r--r--t/harness6
1 files changed, 2 insertions, 4 deletions
diff --git a/t/harness b/t/harness
index ee47fff619..662afb64dc 100644
--- a/t/harness
+++ b/t/harness
@@ -114,9 +114,7 @@ sub _tests_from_manifest {
}
my @results;
- use File::Spec;
- my $updir = File::Spec->updir;
- my $mani = File::Spec->catfile(File::Spec->updir, "MANIFEST");
+ my $mani = '../MANIFEST';
if (open(MANI, $mani)) {
while (<MANI>) { # similar code in t/TEST
if (m!^(ext/(\S+)/+(?:[^/\s]+\.t|test\.pl)|lib/\S+?(?:\.t|test\.pl))\s!) {
@@ -129,7 +127,7 @@ sub _tests_from_manifest {
$flat_extension =~ s!-!/!g;
next if $skip{$flat_extension}; # Foo/Bar may live in Foo-Bar
}
- push @results, File::Spec->catfile($updir, $test);
+ push @results, "../$test";
}
}
close MANI;