# @INC = '../lib';
# }
#
+# Its primary purpose is to clear @INC so core tests don't pick up
+# modules from an installed Perl.
+#
# t/TEST will use -MTestInit. You may "use TestInit" in the test
# programs but it is not required.
#
package TestInit;
+$VERSION = 1.01;
+
chdir 't' if -d 't';
@INC = '../lib';
-$ENV{PERL_CORE} = 1;
+
+# Don't interfere with the taintedness of %ENV, this could perturbate tests.
+# This feels like a better solution than the original, from
+# http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2003-07/msg00154.html
+$ENV{PERL_CORE} = $^X;
+
$0 =~ s/\.dp$//; # for the test.deparse make target
1;