summaryrefslogtreecommitdiff
path: root/tools/test-build
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-01-17 14:40:44 +0000
committerSadie Powell <sadie@witchery.services>2020-01-17 15:35:20 +0000
commit19cdd938610e6630d58bd5b0fd311a80f6e54647 (patch)
treeb8c8ad671fa76ccdf557d63725e1f81e5bd0f9ac /tools/test-build
parent5ae65245221dfad24510ee9a1fbead8db740251f (diff)
Fix Perl tools not using the correct directory name in 'use lib'.
Diffstat (limited to 'tools/test-build')
-rwxr-xr-xtools/test-build5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/test-build b/tools/test-build
index 773ddee64..978b60bc1 100755
--- a/tools/test-build
+++ b/tools/test-build
@@ -30,9 +30,10 @@ use feature ':5.10';
use strict;
use warnings FATAL => qw(all);
-use FindBin qw($RealDir);
+use File::Basename qw(dirname);
+use FindBin qw($RealDir);
-use lib $RealDir;
+use lib dirname $RealDir;
use make::common;
use make::configure;