This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b3d3f34
)
TestInit at the command line should treat tests in cpan/ the same as in ext/
author
Nicholas Clark
<nick@ccl4.org>
Sat, 26 Sep 2009 20:21:30 +0000
(21:21 +0100)
committer
Nicholas Clark
<nick@ccl4.org>
Sat, 26 Sep 2009 20:21:30 +0000
(21:21 +0100)
TestInit.pm
patch
|
blob
|
blame
|
history
diff --git
a/TestInit.pm
b/TestInit.pm
index
73bd8cf
..
7eec5b4
100644
(file)
--- 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
# 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|cpan)
[\\/][^\\/]+)[\//](.*\.t)$!$2!) {
# Looks like a test in ext.
chdir $1 or die "Can't chdir '$1': $!";
new_inc(@up_2_t);
# Looks like a test in ext.
chdir $1 or die "Can't chdir '$1': $!";
new_inc(@up_2_t);