This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Cargo-cult addition of op_say to the MAD code
[perl5.git] / t / TestInit.pm
CommitLineData
4343e7c3 1# This is a replacement for the old BEGIN preamble which heads (or
db7c4376 2# should head) up every core test program to prepare it for running.
4343e7c3
MS
3# Now instead of:
4#
5# BEGIN {
6# chdir 't' if -d 't';
7# @INC = '../lib';
8# }
9#
c1b78184
MS
10# Its primary purpose is to clear @INC so core tests don't pick up
11# modules from an installed Perl.
12#
db7c4376
PG
13# t/TEST will use -MTestInit. You may "use TestInit" in the test
14# programs but it is not required.
4343e7c3 15#
db7c4376
PG
16# P.S. This documentation is not in POD format in order to avoid
17# problems when there are fundamental bugs in perl.
4343e7c3 18
18fc9488
DM
19package TestInit;
20
2af1ab88
JH
21$VERSION = 1.01;
22
4343e7c3 23chdir 't' if -d 't';
3eed716c 24@INC = '../lib';
a1910616
RGS
25
26# Don't interfere with the taintedness of %ENV, this could perturbate tests
27$ENV{PERL_CORE} = 1 unless ${^TAINT};
28
7a315204 29$0 =~ s/\.dp$//; # for the test.deparse make target
ec5f1610
RH
301;
31