X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCGI%2Ft%2Fcookie.t;h=f02d11302c8d4451c951355a99887dd42b22a81d;hb=ac734d8bd697d0795c7d9ab8a3fa6068e4da1b0c;hp=a2012e556b0cfacec4a3cd80bab6b559fb2c6737;hpb=31f2a3990f7718ffeb53233b84d710d047b543f5;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/CGI/t/cookie.t b/lib/CGI/t/cookie.t index a2012e5..f02d113 100644 --- a/lib/CGI/t/cookie.t +++ b/lib/CGI/t/cookie.t @@ -1,11 +1,12 @@ #!/usr/local/bin/perl -w -BEGIN { - chdir 't' if -d 't'; - @INC = '../lib'; -} - +use lib qw(t/lib); use strict; + +# 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 => 86; use CGI::Util qw(escape unescape); use POSIX qw(strftime);