]> granicus.if.org Git - curl/commitdiff
Make sure @INC is modified before 'using' the sshhelp module.
authorYang Tse <yangsita@gmail.com>
Fri, 4 Jan 2008 03:05:33 +0000 (03:05 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 4 Jan 2008 03:05:33 +0000 (03:05 +0000)
tests/runtests.pl

index 9cdcfe539344ee9dbf32d58e8e57727564749a73..cae40bb7f0d9e0bc6d1272122b0ec5de86485146 100755 (executable)
 
 # These should be the only variables that might be needed to get edited:
 
+BEGIN {
+    @INC=(@INC, $ENV{'srcdir'}, ".");
+}
+
 use strict;
 #use Time::HiRes qw( gettimeofday );
 #use warnings;
 use Cwd;
 
-@INC=(@INC, $ENV{'srcdir'}, ".");
-
 # Variables and subs imported from sshhelp module
 use sshhelp qw(
     $sshexe