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.3 by root, Sun Oct 22 10:33:19 2006 UTC vs.
Revision 1.6 by root, Tue Oct 24 11:57:30 2006 UTC

1#!/usr/bin/perl 1#!/usr/bin/perl
2 2
3use IO::AIO; 3use IO::AIO;
4 4
5print "1..10\n"; 5print "1..12\n";
6
7IO::AIO::min_parallel 2;#d#
6 8
7my $grp = aio_group sub { 9my $grp = aio_group sub {
8 print $_[0] == 1 && @_ == 3 ? "" : "not ", "ok 4\n"; 10 print $_[0] == 1 && @_ == 3 ? "" : "not ", "ok 4\n";
9}; 11};
10 12
45 47
46print "ok 7\n"; 48print "ok 7\n";
47 49
48IO::AIO::poll while IO::AIO::nreqs; 50IO::AIO::poll while IO::AIO::nreqs;
49 51
50IO::AIO::aio_sleep 0, sub { print "ok 9\n" }; 52IO::AIO::aio_busy 0, sub { print "ok 9\n" };
51 53
52IO::AIO::poll while IO::AIO::nreqs; 54IO::AIO::poll while IO::AIO::nreqs;
53 55
54print "ok 10\n"; 56print "ok 10\n";
57
58aio_nop sub {
59 print "ok 11\n";
60};
61
62IO::AIO::poll while IO::AIO::nreqs;
63
64print "ok 12\n";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines