This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
shared hash keys and ++/--
[perl5.git] / lib / Net / t / smtp.t
CommitLineData
406c51ee
JH
1#!./perl -w
2
302cc833
GB
3BEGIN {
4 unless (-d 'blib') {
5 chdir 't' if -d 't';
6 @INC = '../lib';
7 }
8b14f033
JH
8 if (ord('A') == 193 && !eval "require Convert::EBCDIC") {
9 print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0;
10 }
302cc833
GB
11}
12
406c51ee
JH
13use Net::Config;
14use Net::SMTP;
15
16unless(@{$NetConfig{smtp_hosts}} && $NetConfig{test_hosts}) {
17 print "1..0\n";
18 exit 0;
19}
20
21print "1..3\n";
22
23my $i = 1;
24
25$smtp = Net::SMTP->new(Debug => 0)
26 or (print("not ok 1\n"), exit);
27
28print "ok 1\n";
29
30$smtp->domain or print "not ";
31print "ok 2\n";
32
33$smtp->quit or print "not ";
34print "ok 3\n";
35