|
|
1 | BEGIN { |
|
|
2 | unless (exists $SIG{USR1}) { |
|
|
3 | print <<EOF; |
|
|
4 | 1..0 # SKIP Broken perl detected, skipping tests. |
|
|
5 | EOF |
|
|
6 | exit 0; |
|
|
7 | } |
|
|
8 | } |
|
|
9 | |
1 | use AnyEvent; |
10 | use AnyEvent; |
2 | use AnyEvent::Impl::Perl; |
11 | BEGIN { require AnyEvent::Impl::Perl unless $ENV{PERL_ANYEVENT_MODEL} } |
3 | |
12 | |
4 | $| = 1; print "1..5\n"; |
13 | $| = 1; print "1..5\n"; |
5 | |
14 | |
6 | print "ok 1\n"; |
15 | print "ok 1\n"; |
7 | |
16 | |
… | |
… | |
19 | $cv->broadcast; |
28 | $cv->broadcast; |
20 | }); |
29 | }); |
21 | |
30 | |
22 | print "ok 2\n"; |
31 | print "ok 2\n"; |
23 | kill 'INT', $$; |
32 | kill 'INT', $$; |
24 | $cv->wait; |
33 | $cv->recv; |
25 | undef $error; |
34 | undef $error; |
26 | |
35 | |
27 | print "ok 4\n"; |
36 | print "ok 4\n"; |
28 | |
37 | |
29 | undef $sw; |
38 | undef $sw; |