summaryrefslogtreecommitdiff
path: root/test/runtest
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-10-20 16:53:32 +0200
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2016-10-20 16:53:55 +0200
commitb057ad118a14ea2e8f9bc483eaf636e84b25c4be (patch)
tree3faed82d75065bcc14d0974af6a82f14ded42931 /test/runtest
parent7a601efb64703a02c860c84b709079b18c7ab33d (diff)
Testsuite: use /usr/bin/env perl to get Perl from $PATH
Some buildfarm animals may have more recent versions of Perl installed in some directory accessable via $PATH. So we don't hardwire /usr/bin/perl. (e.g. verily)
Diffstat (limited to 'test/runtest')
-rwxr-xr-xtest/runtest8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/runtest b/test/runtest
index bdba26fc9..62281656d 100755
--- a/test/runtest
+++ b/test/runtest
@@ -1,4 +1,6 @@
-#! /usr/bin/perl -w
+#! /usr/bin/env perl
+# We use env, because in some environments of our build farm
+# the Perl 5.010 interpreter is only reachable via $PATH
###############################################################################
# This is the controlling script for the "new" test suite for Exim. It should #
@@ -14,7 +16,9 @@
###############################################################################
#use strict;
-#use 5.010;
+use 5.010;
+use warnings;
+
use Errno;
use FileHandle;
use IO::Socket::INET;