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

Comparing AnyEvent/t/65_event_04_condvar.t (file contents):
Revision 1.4 by root, Mon Jul 20 22:39:57 2009 UTC vs.
Revision 1.6 by root, Tue Aug 2 20:02:46 2011 UTC

1use AnyEvent; 1use AnyEvent;
2BEGIN { eval q{use AnyEvent::Impl::Event;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::Event not loadable}), exit 0) } 2BEGIN { eval q{use AnyEvent::Impl::Event;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::Event not loadable
3}), exit 0) }
3 4
4$| = 1; print "1..21\n"; 5$| = 1; print "1..21\n";
5 6
6print "ok 1\n"; 7print "ok 1\n";
7 8
25 print "ok 3\n"; 26 print "ok 3\n";
26 $cv->send (7, 5); 27 $cv->send (7, 5);
27 }); 28 });
28 29
29 print "ok 2\n"; 30 print "ok 2\n";
30 $cv->wait; 31 $cv->recv;
31 print "ok 8\n"; 32 print "ok 8\n";
32 33
33 my @x = $cv->recv; 34 my @x = $cv->recv;
34 print $x[1] == 5 ? "" : "not ", "ok 9 # $x[1] == 5\n"; 35 print $x[1] == 5 ? "" : "not ", "ok 9 # $x[1] == 5\n";
35} 36}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines