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.12 by root, Thu Jul 9 01:08:22 2009 UTC vs.
Revision 1.15 by root, Sat Jul 18 00:05:29 2009 UTC

1use POSIX ();
2
3use AnyEvent;
4use AnyEvent::Impl::Perl;
5
1BEGIN { 6BEGIN {
2 # check for broken perls 7 # check for broken perls
3 if ($^O =~ /mswin32/i) { 8 if ($^O =~ /mswin32/i) {
4 my $ok; 9 my $ok;
5 local $SIG{CHLD} = sub { $ok = 1 }; 10 local $SIG{CHLD} = sub { $ok = 1 };
12 exit 0; 17 exit 0;
13 } 18 }
14 } 19 }
15} 20}
16 21
17BEGIN {
18 $|=1;
19 print "1..7\n" 22$| = 1; print "1..7\n";
20}
21 23
22use POSIX (); 24$AnyEvent::MAX_SIGNAL_LATENCY = 1;
23
24use AnyEvent;
25use AnyEvent::Impl::Perl;
26 25
27print "ok 1\n"; 26print "ok 1\n";
28 27
29AnyEvent::detect; # force-load event model 28AnyEvent::detect; # force-load event model
30 29
65Bail out! No child exit detected. This is either a bug in AnyEvent or a bug in your Perl (mostly some windows distributions suffer from that): child watchers might not work properly on this platform. You can force installation of this module if you do not rely on child watchers, or you could upgrade to a working version of Perl for your platform.\n"; 64Bail out! No child exit detected. This is either a bug in AnyEvent or a bug in your Perl (mostly some windows distributions suffer from that): child watchers might not work properly on this platform. You can force installation of this module if you do not rely on child watchers, or you could upgrade to a working version of Perl for your platform.\n";
66EOF 65EOF
67 exit 0; 66 exit 0;
68}); 67});
69 68
70my $inter = AnyEvent->timer (after => 4, cb => sub {
71 print "not ok 5 # inter\n";#d# temporary
72 print "not ok 6 # inter\n";#d# temporary
73 $cv2->send;
74});
75
76$cv2->wait; 69$cv2->wait;
77 70
78print "ok 7\n"; 71print "ok 7\n";
79 72
80 73

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines