ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-Fork/t/01_early.t
Revision: 1.2
Committed: Thu Apr 4 03:45:12 2013 UTC (11 years, 2 months ago) by root
Content type: application/x-troff
Branch: MAIN
Changes since 1.1: +6 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 BEGIN { $| = 1; print "1..3\n"; }
2 root 1.2
3 root 1.1 use AnyEvent::Fork::Early;
4 root 1.2
5 root 1.1 print $AnyEvent::Fork::TEMPLATE == $AnyEvent::Fork::EARLY ? "" : "not ", "ok 1\n";
6 root 1.2
7     $AnyEvent::Fork::EARLY->eval ('print "ok 2\n"; exit 0');
8    
9 root 1.1 my $w = AE::io $AnyEvent::Fork::EARLY->[1], 0, my $cv = AE::cv;
10     $cv->recv;
11 root 1.2
12 root 1.1 print "ok 3\n";