If things are broken enough that make_ext.pl cannot run, then mini-
test may run this script before everything is built. Hence, we need
to make sure the directories that buildcustomize.pl puts in @INC are
not clobbered by the test script.
BEGIN {
chdir 't' if -d 't';
- @INC = '../lib';
- require './test.pl'; require './charset_tools.pl';
+ require './test.pl';
+ @INC = () unless is_miniperl();
+ unshift @INC, '../lib';
+ require './charset_tools.pl';
}
use strict;