ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/t/03_child.t
(Generate patch)

Comparing AnyEvent/t/03_child.t (file contents):
Revision 1.9 by root, Fri Apr 25 13:32:39 2008 UTC vs.
Revision 1.10 by root, Fri May 23 16:36:02 2008 UTC

1$|=1; 1$|=1;
2
3BEGIN {
4 # check for broken perls
5 if ($^O =~ /mswin32/i) {
6 my $ok;
7 local $SIG{CHLD} = sub { $ok = 1 };
8 kill 'CHLD', 0;
9
10 unless ($ok) {
11 print <<EOF;
121..0 # Your perl interpreter is badly BROKEN. Child watchers will not work, ever. Try upgrading to a newer perl or a working perl (cygwin's perl is known to work). If that is not an option, you should be able to use the remaining functionality of AnyEvent, but child watchers WILL NOT WORK.
13EOF
14 exit 0;
15 }
16 }
17}
18
2BEGIN { 19BEGIN {
3 print "1..7\n" 20 print "1..7\n"
4} 21}
5 22
6use AnyEvent; 23use AnyEvent;
7use AnyEvent::Impl::Perl; 24use AnyEvent::Impl::Perl;
8
9print STDERR <<EOF;
10
11If the following test hangs for a long time you either found a bug in
12AnyEvent or, more likely, you have a defective perl (most windows perl
13distros are broken, cygwin perl works). If you do not rely on child
14handlers you can force the installation of this module and the rest will
15likely work. Otherwise upgrading to a working perl is recommended.
16EOF
17 25
18print "ok 1\n"; 26print "ok 1\n";
19 27
20AnyEvent::detect; # force-load event model 28AnyEvent::detect; # force-load event model
21 29

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines