summaryrefslogtreecommitdiff
path: root/t/TEST
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-09-05 20:23:14 +0100
committerNicholas Clark <nick@ccl4.org>2009-09-05 20:27:05 +0100
commitab662740a280b0adc715b34ea6c3b6c1802d3143 (patch)
treeecee4f8e038c0e0d43879649f975e5adc6373c70 /t/TEST
parent6623414d105ebdca0aa77f230db6e788f1f52e77 (diff)
downloadperl-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-xt/TEST3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/TEST b/t/TEST
index e293a5c4ab..4eebf9adb4 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';