Skip to content

Commit

Permalink
A test was failing rather than skipping due to insufficient privileges.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaputo committed Oct 14, 2009
1 parent 850b00f commit 65682a4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/POE/Component/Client/Ping.pm
Expand Up @@ -24,7 +24,7 @@ use vars qw(@ISA @EXPORT_OK %EXPORT_TAGS);
);

use vars qw($VERSION $PKTSIZE);
$VERSION = '1.161';
$VERSION = '1.162';
$PKTSIZE = $^O eq 'linux' ? 3_000 : 100;

use Carp qw(croak);
Expand Down
9 changes: 9 additions & 0 deletions t/04_timeout_retry.t
Expand Up @@ -6,6 +6,15 @@

use warnings;
use strict;

BEGIN {
$| = 1;
if ($> and ($^O ne 'VMS')) {
print "1..0 # skipped: ICMP ping requires root privilege\n";
exit 0;
}
};

use POE qw(Component::Client::Ping);

use Test::More tests => 2;
Expand Down

0 comments on commit 65682a4

Please sign in to comment.