ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/01_basic.t
Revision: 1.6
Committed: Wed Dec 29 04:16:33 2010 UTC (13 years, 5 months ago) by root
Content type: application/x-troff
Branch: MAIN
CVS Tags: rel-7_05, rel-7_07, rel-7_01, rel-7_02, rel-7_03, rel-7_08, rel-7_09, rel-7_16, rel-7_13, rel-7_11, rel-6_0, rel-6_1, rel-6_11, rel-6_12, rel-6_13, rel-7_15, rel-7_14, rel-7_12, rel-6_02, rel-6_01, rel-7_0, rel-5_3, rel-7_04, rel-5_31, rel-6_14, HEAD
Changes since 1.5: +1 -1 lines
Log Message:
first round of ioasync rewrite

File Contents

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