From: Yang Tse Date: Fri, 4 Jan 2008 03:05:33 +0000 (+0000) Subject: Make sure @INC is modified before 'using' the sshhelp module. X-Git-Tag: curl-7_18_0~124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf6e2f28ba4f4cd7a36f93277e5435c3d0f7ccec;p=curl Make sure @INC is modified before 'using' the sshhelp module. --- diff --git a/tests/runtests.pl b/tests/runtests.pl index 9cdcfe539..cae40bb7f 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -56,13 +56,15 @@ # 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