ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Coro/t/11_deadlock.t
(Generate patch)

Comparing cvsroot/Coro/t/11_deadlock.t (file contents):
Revision 1.2 by root, Fri Apr 13 12:56:55 2007 UTC vs.
Revision 1.4 by root, Tue Mar 5 18:37:43 2013 UTC

1BEGIN {
2 if ($^O =~ /mswin32/i) {
3 print <<EOF;
41..0 # Perl binary broken, skipping test. Upgrading to a working perl is advised.
5EOF
6 exit 0;
7 }
8}
9
1BEGIN { $| = 1; print "1..5\n"; } 10BEGIN { $| = 1; print "1..5\n"; }
2 11
3use Coro; 12use Coro;
4 13
5print "ok 1\n"; 14print "ok 1\n";
21 3 == $? >> 8 30 3 == $? >> 8
22 ? "not " : "", "ok 3\n"; 31 ? "not " : "", "ok 3\n";
23 32
24my $coro = new Coro sub { 33my $coro = new Coro sub {
25 print "ok 5\n"; 34 print "ok 5\n";
26 Coro::State::_exit 0; 35 Coro::Util::_exit 0;
27}; 36};
28 37
29$Coro::idle = sub { 38$Coro::idle = sub {
30 $coro->ready; 39 $coro->ready;
31}; 40};

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines