X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2FTestInit.pm;h=d06f7255ae31f9ddc50ace28f2e2b87c6d6d25bb;hb=2d862febb32638bf1f7663134644cf7e37f284ad;hp=873c3ce8789571fca4c588d4a70b76613fa8a5da;hpb=4343e7c36e286bd35f0011d180bda3c7612c4aac;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/TestInit.pm b/t/TestInit.pm index 873c3ce..d06f725 100644 --- a/t/TestInit.pm +++ b/t/TestInit.pm @@ -1,5 +1,5 @@ # This is a replacement for the old BEGIN preamble which heads (or -# should head) up every core test program to prep it for running. +# should head) up every core test program to prepare it for running. # Now instead of: # # BEGIN { @@ -7,11 +7,20 @@ # @INC = '../lib'; # } # -# t/TEST will use -MTestInit. It also doesn't hurt if you "use TestInit" -# (not require) in the test scripts. +# t/TEST will use -MTestInit. You may "use TestInit" in the test +# programs but it is not required. # -# PS this is not POD because this should be a very minimalist module in -# case of fundemental perl breakage. +# P.S. This documentation is not in POD format in order to avoid +# problems when there are fundamental bugs in perl. + +package TestInit; chdir 't' if -d 't'; @INC = '../lib'; + +# 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; +