ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-Fork/t/02_template.t
(Generate patch)

Comparing AnyEvent-Fork/t/02_template.t (file contents):
Revision 1.1 by root, Thu Apr 4 00:27:06 2013 UTC vs.
Revision 1.2 by root, Thu Apr 4 03:45:12 2013 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines