diff options
Diffstat (limited to 'TestInit.pm')
-rw-r--r-- | TestInit.pm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/TestInit.pm b/TestInit.pm index 16eb318cc3..f4ed6fd93d 100644 --- a/TestInit.pm +++ b/TestInit.pm @@ -76,7 +76,16 @@ sub import { } else { # (likely) we're being run by t/TEST or t/harness, and we're a test # in t/ - @INC = '../lib'; + if (defined &DynaLoader::boot_DynaLoader) { + @INC = '../lib'; + } + else { + # miniperl/minitest + # t/TEST does not supply -I../lib, so buildcustomize.pl is + # not automatically included. + unshift @INC, '../lib'; + do "../lib/buildcustomize.pl"; + } } } |