X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCGI%2Ft%2Fpush.t;h=2c48d60ba300a650b2b6f6da89f20569729b3586;hb=8f3ccfa25e524ac7012f7d988353f2de4c217ccb;hp=dbe4551cc5d7f9fef75421cd815fc507a45b4762;hpb=13e345655fd69fad07c7c1d3f491abb9523bfcbd;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/CGI/t/push.t b/lib/CGI/t/push.t index dbe4551..2c48d60 100644 --- a/lib/CGI/t/push.t +++ b/lib/CGI/t/push.t @@ -1,15 +1,10 @@ #!./perl -wT -BEGIN { - chdir 't' if -d 't'; - if ($ENV{PERL_CORE}) { - @INC = '../lib'; - } else { - # Due to a bug in older versions of MakeMaker & Test::Harness, we must - # ensure the blib's are in @INC, else we might use the core CGI.pm - unshift @INC, qw( ../blib/lib ../blib/arch lib ); - } -} +use lib qw(t/lib); + +# Due to a bug in older versions of MakeMaker & Test::Harness, we must +# ensure the blib's are in @INC, else we might use the core CGI.pm +use lib qw(blib/lib blib/arch); use Test::More tests => 12;