diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-09-05 20:23:14 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-09-05 20:27:05 +0100 |
commit | ab662740a280b0adc715b34ea6c3b6c1802d3143 (patch) | |
tree | ecee4f8e038c0e0d43879649f975e5adc6373c70 /t/TEST | |
parent | 6623414d105ebdca0aa77f230db6e788f1f52e77 (diff) | |
download | perl-ab662740a280b0adc715b34ea6c3b6c1802d3143.tar.gz |
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.)
Diffstat (limited to 't/TEST')
-rwxr-xr-x | t/TEST | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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'; |