Move Net::Ping from ext/ to dist/
[p5sagit/p5-mst-13.2.git] / dist / Net-Ping / t / 130_tcp_inst.t
CommitLineData
505f3f16 1# Test to make sure object can be instantiated for tcp protocol.
2
a2a978ac 3BEGIN {
49afa5f6 4 unless (eval "require Socket") {
5 print "1..0 \# Skip: no Socket\n";
6 exit;
7 }
e82f584b 8 unless (getservbyname('echo', 'tcp')) {
ddbbf559 9 print "1..0 \# Skip: no echo port\n";
10 exit;
11 }
a2a978ac 12}
13
505f3f16 14use Test;
15use Net::Ping;
16plan tests => 2;
17
18# Everything loaded fine
19ok 1;
20
21my $p = new Net::Ping "tcp";
22ok !!$p;