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

Comparing AnyEvent/t/66_ioasync_09_multi.t (file contents):
Revision 1.5 by root, Fri Aug 26 03:34:01 2011 UTC vs.
Revision 1.9 by root, Fri Mar 30 04:22:22 2012 UTC

25 25
26 26
27$| = 1; print "1..15\n"; 27$| = 1; print "1..15\n";
28 28
29print "ok 1\n"; 29print "ok 1\n";
30
31$AnyEvent::MAX_SIGNAL_LATENCY = 0.05;
30 32
31my ($a, $b) = AnyEvent::Util::portable_socketpair; 33my ($a, $b) = AnyEvent::Util::portable_socketpair;
32 34
33# I/O write 35# I/O write
34{ 36{
94 print $s == 0 ? "" : "not ", "ok 6 # $s\n"; 96 print $s == 0 ? "" : "not ", "ok 6 # $s\n";
95 97
96 kill INT => $$; 98 kill INT => $$;
97 99
98 $cv = AE::cv; 100 $cv = AE::cv;
99 $wt = AE::timer 0.01, 0, $cv; 101 $wt = AE::timer 0.2, 0, $cv; # maybe OS X needs more time here? or maybe some buggy arm kernel?
100 102
101 $s = 0; 103 $s = 0;
102 $cv->recv; 104 $cv->recv;
103 105
104 print $s == 3 ? "" : "not ", "ok 7 # $s\n"; 106 print $s == 3 ? "" : "not ", "ok 7 # $s\n";
109 $s = 0; 111 $s = 0;
110 $cv->recv; 112 $cv->recv;
111 113
112 print $s == 0 ? "" : "not ", "ok 8 # $s\n"; 114 print $s == 0 ? "" : "not ", "ok 8 # $s\n";
113} 115}
114
115$AnyEvent::MAX_SIGNAL_LATENCY = 0.2;
116 116
117# child 117# child
118{ 118{
119 my $cv = AE::cv; 119 my $cv = AE::cv;
120 my $wt = AE::timer 0.01, 0, $cv; 120 my $wt = AE::timer 0.01, 0, $cv;
137 print $s == 0 ? "" : "not ", "ok 9 # $s\n"; 137 print $s == 0 ? "" : "not ", "ok 9 # $s\n";
138 138
139 kill 9, $pid; 139 kill 9, $pid;
140 140
141 $cv = AE::cv; 141 $cv = AE::cv;
142 $wt = AE::timer 0.01, 0, $cv; 142 $wt = AE::timer 0.2, 0, $cv; # cygwin needs ages for this
143 143
144 $s = 0; 144 $s = 0;
145 $cv->recv; 145 $cv->recv;
146 146
147 print $s == 3 ? "" : "not ", "ok 10 # $s\n"; 147 print $s == 3 ? "" : "not ", "ok 10 # $s\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines