summaryrefslogtreecommitdiff
path: root/TestInit.pm
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-09-26 21:15:34 +0100
committerNicholas Clark <nick@ccl4.org>2009-09-26 21:29:26 +0100
commita193a2dbe32848820392de0a7fd340ca82c2efd9 (patch)
treeb05d072dcaf2cf6a62c00b57eef0c1010e0e9cd8 /TestInit.pm
parentfe0fb48b9e1689ad6e74e0516047f20e411bc3b4 (diff)
downloadperl-a193a2dbe32848820392de0a7fd340ca82c2efd9.tar.gz
Support building extensions in dist/ as well as cpan/ and 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 7eec5b4710..8513955ab7 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|cpan)[\\/][^\\/]+)[\//](.*\.t)$!$2!) {
+ if ($0 =~ s!^((?:ext|dist|cpan)[\\/][^\\/]+)[\//](.*\.t)$!$2!) {
# Looks like a test in ext.
chdir $1 or die "Can't chdir '$1': $!";
new_inc(@up_2_t);