… | … | ||
---|---|---|---|
6 | exit 0; | 6 | exit 0; |
7 | } | 7 | } |
8 | } | 8 | } |
9 | 9 | ||
10 | use AnyEvent; | 10 | use AnyEvent; |
11 | |||
12 | BEGIN { $ENV{PERL_ANYEVENT_LOOP_TESTS} or ((print qq{1..0 # SKIP PERL_ANYEVENT_LOOP_TESTS not true\n}), exit 0) } | ||
11 | BEGIN { eval q{use AnyEvent::Impl::EventLib;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::EventLib not loadable}), exit 0) } | 13 | BEGIN { eval q{use AnyEvent::Impl::EventLib;1} or ((print qq{1..0 # SKIP AnyEvent::Impl::EventLib not loadable\n}), exit 0) } |
14 | |||
15 | |||
12 | 16 | ||
13 | $| = 1; print "1..5\n"; | 17 | $| = 1; print "1..5\n"; |
14 | 18 | ||
15 | print "ok 1\n"; | 19 | print "ok 1\n"; |
16 | 20 | ||
… | … | ||
28 | $cv->broadcast; | 32 | $cv->broadcast; |
29 | }); | 33 | }); |
30 | 34 | ||
31 | print "ok 2\n"; | 35 | print "ok 2\n"; |
32 | kill 'INT', $$; | 36 | kill 'INT', $$; |
33 | $cv->wait; | 37 | $cv->recv; |
34 | undef $error; | 38 | undef $error; |
35 | 39 | ||
36 | print "ok 4\n"; | 40 | print "ok 4\n"; |
37 | 41 | ||
38 | undef $sw; | 42 | undef $sw; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |