… | |
… | |
58 | print $pid2 == $_[0] ? "" : "not ", "ok 5 # $pid2 == $_[0]\n"; |
58 | print $pid2 == $_[0] ? "" : "not ", "ok 5 # $pid2 == $_[0]\n"; |
59 | print 7 == ($_[1] >> 8) ? "" : "not ", "ok 6 # 7 == $_[1] >> 8 ($_[1])\n"; |
59 | print 7 == ($_[1] >> 8) ? "" : "not ", "ok 6 # 7 == $_[1] >> 8 ($_[1])\n"; |
60 | $cv2->broadcast; |
60 | $cv2->broadcast; |
61 | }); |
61 | }); |
62 | |
62 | |
63 | my $error = AnyEvent->timer (after => 5, cb => sub { |
63 | my $error = AnyEvent->timer (after => 15, cb => sub { |
64 | print <<EOF; |
64 | print <<EOF; |
65 | Bail 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"; |
65 | Bail 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"; |
66 | EOF |
66 | EOF |
67 | exit 0; |
67 | exit 0; |
68 | }); |
68 | }); |
69 | |
69 | |
70 | my $inter = AnyEvent->timer (after => 4, cb => sub { |
70 | my $inter = AnyEvent->timer (after => 14, cb => sub { |
71 | print "not ok 5 # inter\n";#d# temporary |
71 | print "not ok 5 # inter\n"; |
72 | print "not ok 6 # inter\n";#d# temporary |
72 | print "not ok 6 # inter\n"; |
73 | $cv2->send; |
73 | $cv2->send; |
74 | }); |
74 | }); |
75 | |
75 | |
76 | $cv2->wait; |
76 | $cv2->wait; |
77 | |
77 | |