… | |
… | |
21 | BEGIN { require AnyEvent::Impl::Perl unless $ENV{PERL_ANYEVENT_MODEL} } |
21 | BEGIN { require AnyEvent::Impl::Perl unless $ENV{PERL_ANYEVENT_MODEL} } |
22 | |
22 | |
23 | $| = 1; print "1..15\n"; |
23 | $| = 1; print "1..15\n"; |
24 | |
24 | |
25 | print "ok 1\n"; |
25 | print "ok 1\n"; |
|
|
26 | |
|
|
27 | $AnyEvent::MAX_SIGNAL_LATENCY = 0.05; |
26 | |
28 | |
27 | my ($a, $b) = AnyEvent::Util::portable_socketpair; |
29 | my ($a, $b) = AnyEvent::Util::portable_socketpair; |
28 | |
30 | |
29 | # I/O write |
31 | # I/O write |
30 | { |
32 | { |
… | |
… | |
106 | $cv->recv; |
108 | $cv->recv; |
107 | |
109 | |
108 | print $s == 0 ? "" : "not ", "ok 8 # $s\n"; |
110 | print $s == 0 ? "" : "not ", "ok 8 # $s\n"; |
109 | } |
111 | } |
110 | |
112 | |
111 | $AnyEvent::MAX_SIGNAL_LATENCY = 0.2; |
|
|
112 | |
|
|
113 | # child |
113 | # child |
114 | { |
114 | { |
115 | my $cv = AE::cv; |
115 | my $cv = AE::cv; |
116 | my $wt = AE::timer 0.01, 0, $cv; |
116 | my $wt = AE::timer 0.01, 0, $cv; |
117 | my $s = 0; |
117 | my $s = 0; |