Upgrade to Net::Ping 2.11.
[p5sagit/p5-mst-13.2.git] / lib / Net / Ping / t / 110_icmp_inst.t
1 # Test to make sure object can be instantiated for icmp protocol.
2 # Root access is required to actually perform icmp testing.
3
4 BEGIN {
5   unless (eval "require Socket") {
6     print "1..0 \# Skip: no Socket\n";
7     exit;
8   }
9 }
10
11 use Test;
12 use Net::Ping;
13 plan tests => 2;
14
15 # Everything loaded fine
16 ok 1;
17
18 if ($> and $^O ne 'VMS') {
19   skip "icmp ping requires root privileges.", 1;
20 } else {
21   my $p = new Net::Ping "icmp";
22   ok !!$p;
23 }