Testsuite: use /usr/bin/env perl to get Perl from $PATH
[exim.git] / test / runtest
index bdba26fc9055421879a8ecd7cc2f440bdc1b61c0..62281656d53c440e471bd29280bf0f29bf149bd0 100755 (executable)
@@ -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;