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