From bf6e2f28ba4f4cd7a36f93277e5435c3d0f7ccec Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 4 Jan 2008 03:05:33 +0000 Subject: Make sure @INC is modified before 'using' the sshhelp module. --- tests/runtests.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- cgit v1.2.3