summaryrefslogtreecommitdiff
path: root/lib/Net/t/nntp.t
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Net/t/nntp.t')
-rw-r--r--lib/Net/t/nntp.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Net/t/nntp.t b/lib/Net/t/nntp.t
index 1afb588264..e7a42c18c4 100644
--- a/lib/Net/t/nntp.t
+++ b/lib/Net/t/nntp.t
@@ -1,5 +1,10 @@
#!./perl -w
+BEGIN {
+ chdir 't' if -d 't';
+ @INC = '../lib';
+}
+
use Net::Config;
use Net::NNTP;
use Net::Cmd qw(CMD_REJECT);