aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-01-04 03:05:33 +0000
committerYang Tse <yangsita@gmail.com>2008-01-04 03:05:33 +0000
commitbf6e2f28ba4f4cd7a36f93277e5435c3d0f7ccec (patch)
tree1a2486d7d81ccd4926a089ea3c0eced80daa0593
parentf5da1e5484d2f634698df46f2c356a448f067fff (diff)
Make sure @INC is modified before 'using' the sshhelp module.
-rwxr-xr-xtests/runtests.pl6
1 files 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