… | |
… | |
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 | |
21 | |
20 | BEGIN { $ENV{PERL_ANYEVENT_LOOP_TESTS} or ((print qq{1..0 # SKIP PERL_ANYEVENT_LOOP_TESTS not true\n}), exit 0) } |
22 | BEGIN { $ENV{PERL_ANYEVENT_LOOP_TESTS} or ((print qq{1..0 # SKIP PERL_ANYEVENT_LOOP_TESTS not true\n}), exit 0) } |
… | |
… | |
135 | print $s == 0 ? "" : "not ", "ok 9 # $s\n"; |
137 | print $s == 0 ? "" : "not ", "ok 9 # $s\n"; |
136 | |
138 | |
137 | kill 9, $pid; |
139 | kill 9, $pid; |
138 | |
140 | |
139 | $cv = AE::cv; |
141 | $cv = AE::cv; |
140 | $wt = AE::timer 0.01, 0, $cv; |
142 | $wt = AE::timer 0.2, 0, $cv; # cygwin needs ages for this |
141 | |
143 | |
142 | $s = 0; |
144 | $s = 0; |
143 | $cv->recv; |
145 | $cv->recv; |
144 | |
146 | |
145 | print $s == 3 ? "" : "not ", "ok 10 # $s\n"; |
147 | print $s == 3 ? "" : "not ", "ok 10 # $s\n"; |