Skip to content

Commit

Permalink
Test::Timer is now possible to SKIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyer committed Apr 26, 2009
1 parent c968355 commit bc8c564
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ my $builder = Module::Build->new(
dist_version_from => 'lib/Test/Ping.pm',
build_requires => {
'Test::More' => 0,
'Test::Timer' => 0.05,
},
requires => {
'Net::Ping' => 2.33,
Expand Down
2 changes: 1 addition & 1 deletion Changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Revision history for Test-Ping
0.07
rewrote t/06-alarm.t
rewrote Test::Ping::Ties::TIMEOUT, Test::Ping::Ties::TIMEOUT

added Test::Timer as possible skip for testing of t/06-alarm.t

0.06 26.04.09
moved t/05-udp_tcp_inst.t to t/05-udp_tcp_stream_syn_inst.t
Expand Down
7 changes: 4 additions & 3 deletions t/06-alarm.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ use English '-no_match_vars';

SKIP: {
my $debug_vars = "$OSNAME $EXECUTABLE_NAME $]";
eval 'require Socket' || skip 'No Socket', 6;
eval { alarm 0; 1; } || skip "alarm borks on $debug_vars ?", 6;
getservbyname( 'echo', 'tcp' ) || skip 'No echo port', 6;
eval 'require Socket' || skip 'No Socket', 2;
eval { alarm 0; 1; } || skip "alarm borks on $debug_vars ?", 2;
eval 'require Test::Timer' || skip 'No Test::Timer', 2;
getservbyname( 'echo', 'tcp' ) || skip 'No echo port', 2;

my $test = sub { Test::Ping->_ping_object()->ping('1.1.1.1') };

Expand Down

0 comments on commit bc8c564

Please sign in to comment.