ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/t/05_priority.t
Revision: 1.4
Committed: Thu Oct 21 15:13:43 2010 UTC (13 years, 8 months ago) by root
Content type: application/x-troff
Branch: MAIN
CVS Tags: EV-rel-4_28, EV-rel-4_29, EV-rel-4_26, EV-rel-4_27, EV-rel-4_25, EV-rel-4_22, EV-rel-4_20, EV-rel-4_21, rel-4_01, rel-4_00, rel-4_03, rel-4_02, EV-rel-4_31, EV-rel-4_30, EV-rel-4_33, EV-rel-4_32, EV-rel-4_34, EV_rel-4_11, EV_rel-4_10, EV-rel-4_15, EV_rel-4_17, EV_rel-4_16, EV-rel-4_18, HEAD
Changes since 1.3: +1 -1 lines
Log Message:
port testsuite

File Contents

# User Rev Content
1 root 1.1 BEGIN { $| = 1; print "1..9\n"; }
2    
3     no warnings;
4     use strict;
5    
6     use EV;
7    
8 root 1.2 my $t0 = EV::timer -1, 0, sub { print "ok 4\n" };
9     my $t_ = EV::timer -1, 0, sub { print "ok 5\n" }; $t_->priority (-1);
10     my $t1 = EV::timer -1, 0, sub { print "ok 3\n" }; $t1->priority ( 1);
11 root 1.1
12 root 1.3 my $i2 = EV::idle sub { print EV::iteration == 1 ? "" : "not ", "ok 2\n"; $_[0]->stop }; $i2->priority (10);
13     my $i0 = EV::idle sub { print EV::iteration == 3 ? "" : "not ", "ok 7\n"; $_[0]->stop };
14     my $i1 = EV::idle sub { print EV::iteration == 2 ? "" : "not ", "ok 6\n"; $_[0]->stop }; $i1->priority ( 1);
15     my $i_ = EV::idle sub { print EV::iteration == 4 ? "" : "not ", "ok 8\n"; $_[0]->stop }; $i_->priority (-1);
16 root 1.1
17     print "ok 1\n";
18 root 1.4 EV::run;
19 root 1.1 print "ok 9\n";