summaryrefslogtreecommitdiff
path: root/t/harness
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-17 22:07:08 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-17 22:07:08 +0000
commit80ffb5f93608b52314883335103c8837769171e3 (patch)
treedaff8a40e4a9d5b8347132745006579458a6fb56 /t/harness
parentae93639c6e66959ff84ce19b7b13b05a1ca356b7 (diff)
downloadperl-80ffb5f93608b52314883335103c8837769171e3.tar.gz
Change the scan policy of the *.t and test.pl files,
now the *.t do not need to live in a t/ directory. p4raw-id: //depot/perl@10671
Diffstat (limited to 't/harness')
-rw-r--r--t/harness4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/harness b/t/harness
index 011dc6329c..e5ec0d6a26 100644
--- a/t/harness
+++ b/t/harness
@@ -44,8 +44,8 @@ if (@ARGV) {
my $updir = File::Spec->updir;
my $mani = File::Spec->catdir(File::Spec->updir, "MANIFEST");
if (open(MANI, $mani)) {
- while (<MANI>) {
- if (m!^((?:ext|lib)/.+/(?:t/.+\.t)|test.pl)\s!) {
+ while (<MANI>) { # similar code in t/TEST
+ if (m!^(ext/.+/([^/]+\.t|test\.pl)|lib/.+(\.t|test\.pl))\s!) {
push @tests, File::Spec->catdir($updir, $1);
}
}