summaryrefslogtreecommitdiff
path: root/t/harness
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-08-26 07:26:33 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-08-26 15:46:33 -0400
commitcfa562529cf247facc919c1e0d7ae057a190de6c (patch)
treea03e0943db0cd58fe634973d5b84f03bc9bdbfb3 /t/harness
parent272ce8bbdf90cc9c24e7425001986a6b681c6015 (diff)
downloadperl-cfa562529cf247facc919c1e0d7ae057a190de6c.tar.gz
Allow eg ./perl t/harness t/op/lc.t
Diffstat (limited to 't/harness')
-rw-r--r--t/harness8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/harness b/t/harness
index a8a8d9ae30..cb3d8d75ef 100644
--- a/t/harness
+++ b/t/harness
@@ -206,6 +206,14 @@ if ($^O eq 'MSWin32') {
@tests=grep /$re/, @tests
if $re;
+# Allow eg ./perl t/harness t/op/lc.t
+for (@tests) {
+ if (-f "../$_") {
+ $_ = "../$_";
+ s{^\.\./t/}{};
+ }
+}
+
my %options;
my $type = 'perl';