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

Comparing AnyEvent/t/64_glib_04_condvar.t (file contents):
Revision 1.2 by root, Sat Jul 18 00:05:29 2009 UTC vs.
Revision 1.6 by root, Fri Aug 12 18:41:28 2011 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines