summaryrefslogtreecommitdiff
path: root/TestInit.pm
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-08-31 21:46:48 +0100
committerNicholas Clark <nick@ccl4.org>2009-08-31 22:07:18 +0100
commit25a883e141ef5022e3a9afb466f7bc525d011947 (patch)
tree75afbb7b6632a5560a23f75c55d9c94c877ec9bf /TestInit.pm
parent3fcda861606b23c12f4356df2a20543dc1c1779b (diff)
downloadperl-25a883e141ef5022e3a9afb466f7bc525d011947.tar.gz
Anchor a regexp, else paths including /Text/ are mistaken for tests in ext/
Diffstat (limited to 'TestInit.pm')
-rw-r--r--TestInit.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/TestInit.pm b/TestInit.pm
index c626965a03..73bd8cf1db 100644
--- a/TestInit.pm
+++ b/TestInit.pm
@@ -59,7 +59,7 @@ if (-f 't/TEST' && -f 'MANIFEST' && -d 'lib' && -d 'ext') {
# We're being run from the top level. Try to change directory, and set
# things up correctly. This is a 90% solution, but for hand-running tests,
# that's good enough
- if ($0 =~ s!(ext[\\/][^\\/]+)[\//](.*\.t)$!$2!) {
+ if ($0 =~ s!^(ext[\\/][^\\/]+)[\//](.*\.t)$!$2!) {
# Looks like a test in ext.
chdir $1 or die "Can't chdir '$1': $!";
new_inc(@up_2_t);