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.4 by root, Tue Oct 24 16:35:04 2006 UTC vs.
Revision 1.5 by root, Tue Feb 15 03:15:16 2011 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 => 9 } 8BEGIN { plan tests => 10 }
9 9
10IO::AIO::min_parallel 2; 10IO::AIO::min_parallel 2;
11 11
12aio_nop sub { 12IO::AIO::aio_nop sub {
13 print "ok 6\n"; 13 print "ok 6\n";
14};
15
16IO::AIO::aio_busy 0.2, sub {
17 print "ok 8\n";
18
14}; 19};
15 20
16print "ok 1\n"; 21print "ok 1\n";
17 22
18if (open FH, "-|") { 23if (open FH, "-|") {
20 aio_stat "/", sub { 25 aio_stat "/", sub {
21 print "ok 7\n"; 26 print "ok 7\n";
22 }; 27 };
23 print "ok 5\n"; 28 print "ok 5\n";
24 IO::AIO::poll while IO::AIO::nreqs; 29 IO::AIO::poll while IO::AIO::nreqs;
25 print "ok 8\n"; 30 print "ok 9\n";
26} else { 31} else {
27 print "ok 2\n"; 32 print "ok 2\n";
28 aio_stat "/", sub { 33 aio_stat "/", sub {
29 print "ok 3\n"; 34 print "ok 3\n";
30 }; 35 };
31 IO::AIO::poll while IO::AIO::nreqs; 36 IO::AIO::poll while IO::AIO::nreqs;
32 print "ok 4\n"; 37 print "ok 4\n";
33 exit; 38 exit;
34} 39}
35 40
36print "ok 9\n"; 41print "ok 10\n";
37 42

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines