This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: Add, move, clarify comments
[perl5.git] / TestInit.pm
index 16eb318..f4ed6fd 100644 (file)
@@ -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";
+           }
        }
     }