diff options
author | Graham Barr <gbarr@pobox.com> | 2001-10-26 13:22:38 +0000 |
---|---|---|
committer | Graham Barr <gbarr@pobox.com> | 2001-10-26 13:22:38 +0000 |
commit | 302cc833bfd3756cf192f5a7cc5b1dd6f218515a (patch) | |
tree | 9757c8ed5d1a347d513ebc20d15fb5cdf80b236b /lib/Net | |
parent | ec77158c6986c440c2b776cdbe6b5155237aa3a3 (diff) | |
download | perl-302cc833bfd3756cf192f5a7cc5b1dd6f218515a.tar.gz |
Fix tests to be able to run in the core and the CPAN dist
p4raw-id: //depot/perl@12681
Diffstat (limited to 'lib/Net')
-rw-r--r-- | lib/Net/t/ftp.t | 7 | ||||
-rw-r--r-- | lib/Net/t/hostname.t | 8 | ||||
-rw-r--r-- | lib/Net/t/nntp.t | 7 | ||||
-rw-r--r-- | lib/Net/t/require.t | 8 | ||||
-rw-r--r-- | lib/Net/t/smtp.t | 7 |
5 files changed, 37 insertions, 0 deletions
diff --git a/lib/Net/t/ftp.t b/lib/Net/t/ftp.t index 46304dbc22..f0d0c11d04 100644 --- a/lib/Net/t/ftp.t +++ b/lib/Net/t/ftp.t @@ -1,5 +1,12 @@ #!./perl -w +BEGIN { + unless (-d 'blib') { + chdir 't' if -d 't'; + @INC = '../lib'; + } +} + use Net::Config; use Net::FTP; diff --git a/lib/Net/t/hostname.t b/lib/Net/t/hostname.t index 3e55ace019..3bbe2cffab 100644 --- a/lib/Net/t/hostname.t +++ b/lib/Net/t/hostname.t @@ -1,3 +1,11 @@ +#!./perl -w + +BEGIN { + unless (-d 'blib') { + chdir 't' if -d 't'; + @INC = '../lib'; + } +} use Net::Domain qw(hostname domainname hostdomain); use Net::Config; diff --git a/lib/Net/t/nntp.t b/lib/Net/t/nntp.t index 1afb588264..6b905e3864 100644 --- a/lib/Net/t/nntp.t +++ b/lib/Net/t/nntp.t @@ -1,5 +1,12 @@ #!./perl -w +BEGIN { + unless (-d 'blib') { + chdir 't' if -d 't'; + @INC = '../lib'; + } +} + use Net::Config; use Net::NNTP; use Net::Cmd qw(CMD_REJECT); diff --git a/lib/Net/t/require.t b/lib/Net/t/require.t index 39d8f7e5f0..82b047211d 100644 --- a/lib/Net/t/require.t +++ b/lib/Net/t/require.t @@ -1,3 +1,11 @@ +#!./perl -w + +BEGIN { + unless (-d 'blib') { + chdir 't' if -d 't'; + @INC = '../lib'; + } +} print "1..9\n"; my $i = 1; diff --git a/lib/Net/t/smtp.t b/lib/Net/t/smtp.t index 55607fe993..a137a3601a 100644 --- a/lib/Net/t/smtp.t +++ b/lib/Net/t/smtp.t @@ -1,5 +1,12 @@ #!./perl -w +BEGIN { + unless (-d 'blib') { + chdir 't' if -d 't'; + @INC = '../lib'; + } +} + use Net::Config; use Net::SMTP; |