summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xt/TEST2
-rw-r--r--t/harness2
2 files changed, 2 insertions, 2 deletions
diff --git a/t/TEST b/t/TEST
index 1329205b0c..f2f623df79 100755
--- a/t/TEST
+++ b/t/TEST
@@ -97,7 +97,7 @@ unless (@ARGV) {
my $mani = File::Spec->catfile($updir, "MANIFEST");
if (open(MANI, $mani)) {
while (<MANI>) { # similar code in t/harness
- if (m!^(ext/\S+/?([^/]+\.t|test\.pl)|lib/\S+?(\.t|test\.pl))\s!) {
+ if (m!^(ext/\S+/?(?:[^/\s]+\.t|test\.pl)|lib/\S+?(?:\.t|test\.pl))\s!) {
$t = $1;
if (!$core || $t =~ m!^lib/[a-z]!)
{
diff --git a/t/harness b/t/harness
index 455a1f917c..f7239fe3b1 100644
--- a/t/harness
+++ b/t/harness
@@ -71,7 +71,7 @@ if (@ARGV) {
my $mani = File::Spec->catfile(File::Spec->updir, "MANIFEST");
if (open(MANI, $mani)) {
while (<MANI>) { # similar code in t/TEST
- if (m!^(ext/\S+/?([^/]+\.t|test\.pl)|lib/\S+?(\.t|test\.pl))\s!) {
+ if (m!^(ext/\S+/?(?:[^/\s]+\.t|test\.pl)|lib/\S+?(?:\.t|test\.pl))\s!) {
push @tests, File::Spec->catfile($updir, $1);
}
}