summaryrefslogtreecommitdiff
path: root/TestInit.pm
diff options
context:
space:
mode:
Diffstat (limited to 'TestInit.pm')
-rw-r--r--TestInit.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/TestInit.pm b/TestInit.pm
index 88c3ba1849..c921686bac 100644
--- a/TestInit.pm
+++ b/TestInit.pm
@@ -69,6 +69,11 @@ sub import {
delete $ENV{PERL_CORE}
} elsif ($_ eq 'A') {
$abs = 1;
+ } elsif ($_ eq 'T') {
+ $chdir = '..'
+ unless -f 't/TEST' && -f 'MANIFEST' && -d 'lib' && -d 'ext';
+ @new_inc = 'lib';
+ $setopt = 1;
} else {
die "Unknown option '$_'";
}