From: Nicholas Clark Date: Sat, 5 Sep 2009 19:23:14 +0000 (+0100) Subject: Set @INC to ../lib if we're running in t, else modules can't be required. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ab662740a280b0adc715b34ea6c3b6c1802d3143;p=p5sagit%2Fp5-mst-13.2.git Set @INC to ../lib if we're running in t, else modules can't be required. (Either explicity, or the possible implicit require utf8; inside the regexp engine.) --- diff --git a/t/TEST b/t/TEST index e293a5c..4eebf9a 100755 --- a/t/TEST +++ b/t/TEST @@ -80,6 +80,9 @@ our $show_elapsed_time = $ENV{HARNESS_TIMER} || 0; } chdir 't' if -f 't/TEST'; +if (-f 'TEST' && -f 'harness' && -d '../lib') { + @INC = '../lib'; +} die "You need to run \"make test\" first to set things up.\n" unless -e 'perl' or -e 'perl.exe' or -e 'perl.pm';