1 | $|=1; |
|
|
2 | BEGIN { |
|
|
3 | print "1..5\n"; |
|
|
4 | } |
|
|
5 | |
|
|
6 | use AnyEvent; |
1 | use AnyEvent; |
7 | use AnyEvent::Impl::Perl; |
2 | use AnyEvent::Impl::Perl; |
8 | |
3 | |
9 | print STDERR <<EOF; |
4 | $| = 1; print "1..5\n"; |
10 | |
|
|
11 | If the following test hangs for a long time or terminates with a signal |
|
|
12 | you either found a bug in AnyEvent or, more likely, you have a defective |
|
|
13 | perl (most windows perl distros are broken, cygwin perl works). If you do |
|
|
14 | not rely on signal handlers you can force the installation of this module |
|
|
15 | and the rest will likely work. Otherwise upgrading to a working perl is |
|
|
16 | recommended. |
|
|
17 | EOF |
|
|
18 | |
5 | |
19 | print "ok 1\n"; |
6 | print "ok 1\n"; |
20 | |
7 | |
21 | my $cv = AnyEvent->condvar; |
8 | my $cv = AnyEvent->condvar; |
22 | |
9 | |