--- EV/t/03_keepalive.t 2007/11/24 08:28:10 1.1 +++ EV/t/03_keepalive.t 2009/04/15 17:49:27 1.2 @@ -1,11 +1,18 @@ -BEGIN { $| = 1; print "1..7\n"; } +BEGIN { + if (exists $ENV{AUTOMATED_TESTING}) { + print "1..0 # Skipped: Too many broken cpan tester setups.\n"; + exit; + } +} + +BEGIN { $| = 1; print "1..8\n"; } no warnings; use strict; use EV; -my $timer = EV::timer_ns 0, 0, sub { print "ok 6\n" }; +my $timer = EV::timer_ns 1, 0.3, sub { print "ok 7\n"; $_[0]->stop }; $timer->keepalive (1); @@ -21,13 +28,16 @@ $timer->stop; $timer->start; +my $timer2 = EV::timer 0, 0, sub { print "ok 4\n" }; +$timer2->keepalive (0); + print "ok 3\n"; EV::loop; -print "ok 4\n"; +print "ok 5\n"; $timer->keepalive (1); -print "ok 5\n"; +print "ok 6\n"; EV::loop; -print "ok 7\n"; +print "ok 8\n";