--- AnyEvent/t/03_child.t 2008/04/25 13:32:39 1.9 +++ AnyEvent/t/03_child.t 2009/07/09 01:08:22 1.12 @@ -1,20 +1,29 @@ -$|=1; BEGIN { + # check for broken perls + if ($^O =~ /mswin32/i) { + my $ok; + local $SIG{CHLD} = sub { $ok = 1 }; + kill 'CHLD', 0; + + unless ($ok) { + print <child (pid => $pid, cb => sub { @@ -41,7 +50,7 @@ $cv->wait; -my $pid2 = fork || exit 7; +my $pid2 = fork || POSIX::_exit 7; my $cv2 = AnyEvent->condvar; @@ -58,6 +67,12 @@ exit 0; }); +my $inter = AnyEvent->timer (after => 4, cb => sub { + print "not ok 5 # inter\n";#d# temporary + print "not ok 6 # inter\n";#d# temporary + $cv2->send; +}); + $cv2->wait; print "ok 7\n";