--- EV/t/05_priority.t 2008/05/20 23:57:13 1.2 +++ EV/t/05_priority.t 2010/03/16 20:43:05 1.3 @@ -9,10 +9,10 @@ my $t_ = EV::timer -1, 0, sub { print "ok 5\n" }; $t_->priority (-1); my $t1 = EV::timer -1, 0, sub { print "ok 3\n" }; $t1->priority ( 1); -my $i2 = EV::idle sub { print EV::loop_count == 1 ? "" : "not ", "ok 2\n"; $_[0]->stop }; $i2->priority (10); -my $i0 = EV::idle sub { print EV::loop_count == 3 ? "" : "not ", "ok 7\n"; $_[0]->stop }; -my $i1 = EV::idle sub { print EV::loop_count == 2 ? "" : "not ", "ok 6\n"; $_[0]->stop }; $i1->priority ( 1); -my $i_ = EV::idle sub { print EV::loop_count == 4 ? "" : "not ", "ok 8\n"; $_[0]->stop }; $i_->priority (-1); +my $i2 = EV::idle sub { print EV::iteration == 1 ? "" : "not ", "ok 2\n"; $_[0]->stop }; $i2->priority (10); +my $i0 = EV::idle sub { print EV::iteration == 3 ? "" : "not ", "ok 7\n"; $_[0]->stop }; +my $i1 = EV::idle sub { print EV::iteration == 2 ? "" : "not ", "ok 6\n"; $_[0]->stop }; $i1->priority ( 1); +my $i_ = EV::idle sub { print EV::iteration == 4 ? "" : "not ", "ok 8\n"; $_[0]->stop }; $i_->priority (-1); print "ok 1\n"; EV::loop;