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

Comparing IO-AIO/t/06_group.t (file contents):
Revision 1.1 by root, Sun Oct 22 00:19:05 2006 UTC vs.
Revision 1.2 by root, Sun Oct 22 00:49:29 2006 UTC

2 2
3use IO::AIO; 3use IO::AIO;
4 4
5print "1..10\n"; 5print "1..10\n";
6 6
7my $grp = aio_group { 7my $grp = aio_group sub {
8 print "ok 4\n"; 8 print "ok 4\n";
9}; 9};
10 10
11my ($a, $b) = 11my ($a, $b) =
12 add $grp (aio_stat "/2", sub { print "ok 3\n" }), 12 add $grp (aio_stat "/2", sub { print "ok 3\n" }),
20 20
21IO::AIO::poll while IO::AIO::nreqs; 21IO::AIO::poll while IO::AIO::nreqs;
22 22
23print "ok 5\n"; 23print "ok 5\n";
24 24
25$grp = aio_group { 25$grp = aio_group sub {
26 print "not ok 6\n"; 26 print "not ok 6\n";
27}; 27};
28 28
29add $grp aio_stat "/1", sub { print "not ok 7\n" }; 29add $grp aio_stat "/1", sub { print "not ok 7\n" };
30 30
32 32
33print "ok 6\n"; 33print "ok 6\n";
34 34
35IO::AIO::poll while IO::AIO::nreqs; 35IO::AIO::poll while IO::AIO::nreqs;
36 36
37aio_group { 37aio_group sub {
38 print "ok 8\n"; 38 print "ok 8\n";
39}; 39};
40 40
41print "ok 7\n"; 41print "ok 7\n";
42 42

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines