ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/t/16_signal.t
(Generate patch)

Comparing Coro/t/16_signal.t (file contents):
Revision 1.2 by root, Wed Nov 19 02:07:48 2008 UTC vs.
Revision 1.3 by root, Wed Jun 24 02:52:38 2009 UTC

1$|=1; 1$|=1;
2print "1..10\n"; 2print "1..18\n";
3 3
4no warnings; 4no warnings;
5use Coro; 5use Coro;
6use Coro::Signal; 6use Coro::Signal;
7 7
52 52
53 $sig->broadcast; 53 $sig->broadcast;
54 print +(Coro::Semaphore::count $sig) == 0 ? "" : "not ", "ok 8\n"; 54 print +(Coro::Semaphore::count $sig) == 0 ? "" : "not ", "ok 8\n";
55 cede; 55 cede;
56 56
57 $sig->wait (sub { print "ok 12\n" });
58 print "ok 10\n";
59
60 print "ok 11\n";
61
62 $sig->send;
63 print "ok 13\n";
64 cede;
65
66 print "ok 14\n";
67 $sig->send;
68 print "ok 15\n";
69
70 $sig->wait (sub { print "ok 16\n" });
71 print "ok 17\n";
72
57 print +(Coro::Semaphore::count $sig) == 0 ? "" : "not ", "ok 10\n"; 73 print +(Coro::Semaphore::count $sig) == 0 ? "" : "not ", "ok 18\n";
58} 74}
59 75

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines