… | |
… | |
11 | EOF |
11 | EOF |
12 | exit 0; |
12 | exit 0; |
13 | } |
13 | } |
14 | } |
14 | } |
15 | } |
15 | } |
|
|
16 | |
|
|
17 | $^W = 0; # 5.8.6 bugs |
16 | |
18 | |
17 | use AnyEvent; |
19 | use AnyEvent; |
18 | use AnyEvent::Util; |
20 | use AnyEvent::Util; |
19 | BEGIN { require AnyEvent::Impl::Perl unless $ENV{PERL_ANYEVENT_MODEL} } |
21 | BEGIN { require AnyEvent::Impl::Perl unless $ENV{PERL_ANYEVENT_MODEL} } |
20 | |
22 | |
… | |
… | |
131 | print $s == 0 ? "" : "not ", "ok 9 # $s\n"; |
133 | print $s == 0 ? "" : "not ", "ok 9 # $s\n"; |
132 | |
134 | |
133 | kill 9, $pid; |
135 | kill 9, $pid; |
134 | |
136 | |
135 | $cv = AE::cv; |
137 | $cv = AE::cv; |
136 | $wt = AE::timer 0.01, 0, $cv; |
138 | $wt = AE::timer 0.2, 0, $cv; # cygwin needs ages for this |
137 | |
139 | |
138 | $s = 0; |
140 | $s = 0; |
139 | $cv->recv; |
141 | $cv->recv; |
140 | |
142 | |
141 | print $s == 3 ? "" : "not ", "ok 10 # $s\n"; |
143 | print $s == 3 ? "" : "not ", "ok 10 # $s\n"; |