… | |
… | |
18 | |
18 | |
19 | use AnyEvent; |
19 | use AnyEvent; |
20 | use AnyEvent::Util; |
20 | use AnyEvent::Util; |
21 | |
21 | |
22 | 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) } |
23 | BEGIN { eval q{use AnyEvent::Impl::FLTK2;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::FLTK2 not loadable\n}), exit 0) } |
23 | BEGIN { eval q{use AnyEvent::Impl::FLTK;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::FLTK not loadable\n}), exit 0) } |
24 | |
24 | |
25 | |
25 | |
26 | |
26 | |
27 | $| = 1; print "1..15\n"; |
27 | $| = 1; print "1..15\n"; |
28 | |
28 | |
… | |
… | |
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"; |