summaryrefslogtreecommitdiff
path: root/lib/FindBin.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/FindBin.t')
-rwxr-xr-xlib/FindBin.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/FindBin.t b/lib/FindBin.t
index d07ce755ca..ebca15b560 100755
--- a/lib/FindBin.t
+++ b/lib/FindBin.t
@@ -1,8 +1,8 @@
#!./perl
BEGIN {
- chdir 't' if -d 't';
- @INC = '../lib';
+ # Can't chdir in BEGIN before FindBin runs, as it then can't find us.
+ @INC = -d 't' ? 'lib' : '../lib';
}
print "1..1\n";