ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/01_basic.t
(Generate patch)

Comparing AnyEvent/t/01_basic.t (file contents):
Revision 1.3 by root, Wed Apr 23 11:25:42 2008 UTC vs.
Revision 1.6 by root, Wed Dec 29 04:16:33 2010 UTC

1$|=1; 1use AnyEvent;
2BEGIN { print "1..6\n" } 2BEGIN { require AnyEvent::Impl::Perl unless $ENV{PERL_ANYEVENT_MODEL} }
3 3
4use AnyEvent; 4$| = 1; print "1..6\n";
5use AnyEvent::Impl::Perl;
6 5
7print "ok 1\n"; 6print "ok 1\n";
8 7
9my $cv = AnyEvent->condvar; 8my $cv = AnyEvent->condvar;
10 9
12 11
13my $timer1 = AnyEvent->timer (after => 0.1, cb => sub { print "ok 5\n"; $cv->broadcast }); 12my $timer1 = AnyEvent->timer (after => 0.1, cb => sub { print "ok 5\n"; $cv->broadcast });
14 13
15print "ok 3\n"; 14print "ok 3\n";
16 15
17AnyEvent->timer (after => 1, cb => sub { print "not ok 5\n" }); 16AnyEvent->timer (after => 0.01, cb => sub { print "not ok 5\n" });
18 17
19print "ok 4\n"; 18print "ok 4\n";
20 19
21$cv->wait; 20$cv->wait;
22 21

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines