ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/t/04_fork.t
(Generate patch)

Comparing IO-AIO/t/04_fork.t (file contents):
Revision 1.2 by root, Wed Aug 17 05:06:59 2005 UTC vs.
Revision 1.3 by root, Tue Oct 24 14:25:53 2006 UTC

3use Test; 3use Test;
4use IO::AIO; 4use IO::AIO;
5 5
6# this is a lame test, but.... 6# this is a lame test, but....
7 7
8BEGIN { plan tests => 8 } 8BEGIN { plan tests => 9 }
9 9
10IO::AIO::min_parallel 2; 10IO::AIO::min_parallel 2;
11
12aio_nop sub {
13 print "ok 6\n";
14};
11 15
12print "ok 1\n"; 16print "ok 1\n";
13 17
14if (open FH, "-|") { 18if (open FH, "-|") {
15 print while <FH>; 19 print while <FH>;
16 aio_stat "/", sub { 20 aio_stat "/", sub {
17 print "ok 6\n"; 21 print "ok 7\n";
18 }; 22 };
19 print "ok 5\n"; 23 print "ok 5\n";
20 IO::AIO::poll; 24 IO::AIO::poll;
21 print "ok 7\n"; 25 print "ok 8\n";
22} else { 26} else {
23 print "ok 2\n"; 27 print "ok 2\n";
24 aio_stat "/", sub { 28 aio_stat "/", sub {
25 print "ok 3\n"; 29 print "ok 3\n";
26 }; 30 };
27 IO::AIO::poll; 31 IO::AIO::poll;
28 print "ok 4\n"; 32 print "ok 4\n";
29 exit; 33 exit;
30} 34}
31 35
32print "ok 8\n"; 36print "ok 9\n";
33 37

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines