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.1 by root, Tue Aug 16 22:22:18 2005 UTC vs.
Revision 1.3 by root, Tue Oct 24 14:25:53 2006 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines