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

Comparing AnyEvent/t/04_condvar.t (file contents):
Revision 1.1 by root, Sat May 10 21:47:28 2008 UTC vs.
Revision 1.2 by root, Sat May 24 17:48:38 2008 UTC

1$|=1; 1$|=1;
2BEGIN { 2BEGIN {
3 print "1..18\n" 3 print "1..21\n"
4} 4}
5 5
6use AnyEvent; 6use AnyEvent;
7use AnyEvent::Impl::Perl; 7use AnyEvent::Impl::Perl;
8 8
60 my @x = eval { $cv->recv }; 60 my @x = eval { $cv->recv };
61 print !@x ? "" : "not ", "ok 17 # @x\n"; 61 print !@x ? "" : "not ", "ok 17 # @x\n";
62 print $@ =~ /^kill / ? "" : "not ", "ok 18 # $@\n"; 62 print $@ =~ /^kill / ? "" : "not ", "ok 18 # $@\n";
63} 63}
64 64
65{
66 my $cv = AnyEvent->condvar;
67
68 print "ok 19\n";
69 my $t = AnyEvent->timer (after => 0, cb => $cv);
70
71 print "ok 20\n";
72 $cv->recv;
73 print "ok 21\n";
74}
75

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines