X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2FTestInit.pm;h=b90e150e569e34e24f73be01dc2a2fc0a5b3da32;hb=7ff032551aa263179d4cb6df3dd91502d713e6ba;hp=be69c24d7a4873675405bdc8c7f7d606a4a33118;hpb=7a3152049c3b11217c72b149c0293284b6993763;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/TestInit.pm b/t/TestInit.pm index be69c24..b90e150 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,14 +7,17 @@ # @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 funaemental 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'; +$ENV{PERL_CORE} = 1; $0 =~ s/\.dp$//; # for the test.deparse make target 1;