This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Do not honor TMPDIR for anonymous temporary files when tainting
[perl5.git] / t / TestInit.pm
index b90e150..aa76fe1 100644 (file)
 
 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
+$ENV{PERL_CORE} = 1 unless ${^TAINT};
+
 $0 =~ s/\.dp$//; # for the test.deparse make target
 1;