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

Comparing AnyEvent/t/03_child.t (file contents):
Revision 1.19 by root, Wed Dec 29 04:16:33 2010 UTC vs.
Revision 1.20 by root, Tue Aug 2 20:02:45 2011 UTC

48 print $pid == $_[0] ? "" : "not ", "ok ${it}3\ # $pid == $_[0]\n"; 48 print $pid == $_[0] ? "" : "not ", "ok ${it}3\ # $pid == $_[0]\n";
49 print 3 == ($_[1] >> 8) ? "" : "not ", "ok ${it}4 # 3 == $_[1] >> 8 ($_[1])\n"; 49 print 3 == ($_[1] >> 8) ? "" : "not ", "ok ${it}4 # 3 == $_[1] >> 8 ($_[1])\n";
50 $cv->broadcast; 50 $cv->broadcast;
51 }); 51 });
52 52
53 $cv->wait; 53 $cv->recv;
54 54
55 my $pid2 = fork || POSIX::_exit 7; 55 my $pid2 = fork || POSIX::_exit 7;
56 56
57 my $cv2 = AnyEvent->condvar; 57 my $cv2 = AnyEvent->condvar;
58 58
67Bail out! No child exit detected. This is either a bug in AnyEvent or a bug in your Perl (mostly some windows distributions suffer from that): child watchers might not work properly on this platform. You can force installation of this module if you do not rely on child watchers, or you could upgrade to a working version of Perl for your platform.\n"; 67Bail out! No child exit detected. This is either a bug in AnyEvent or a bug in your Perl (mostly some windows distributions suffer from that): child watchers might not work properly on this platform. You can force installation of this module if you do not rely on child watchers, or you could upgrade to a working version of Perl for your platform.\n";
68EOF 68EOF
69 exit 0; 69 exit 0;
70 }); 70 });
71 71
72 $cv2->wait; 72 $cv2->recv;
73 73
74 print "ok ${it}7\n"; 74 print "ok ${it}7\n";
75 print "ok ${it}8\n"; 75 print "ok ${it}8\n";
76 print "ok ${it}9\n"; 76 print "ok ${it}9\n";
77 print "ok ", $it*10+10, "\n"; 77 print "ok ", $it*10+10, "\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines