Revision: | 1.2 |
Committed: | Wed Aug 17 05:06:59 2005 UTC (18 years, 11 months ago) by root |
Content type: | application/x-troff |
Branch: | MAIN |
CVS Tags: | rel-1_61, rel-1_73, rel-1_72, rel-1_71, rel-1_8, rel-1_3, rel-1_5, rel-1_4, rel-1_7, rel-1_6 |
Changes since 1.1: | +8 -12 lines |
Log Message: | *** empty log message *** |
# | Content |
---|---|
1 | #!/usr/bin/perl |
2 | |
3 | use Test; |
4 | use IO::AIO; |
5 | |
6 | # this is a lame test, but.... |
7 | |
8 | BEGIN { plan tests => 8 } |
9 | |
10 | IO::AIO::min_parallel 2; |
11 | |
12 | print "ok 1\n"; |
13 | |
14 | if (open FH, "-|") { |
15 | print while <FH>; |
16 | aio_stat "/", sub { |
17 | print "ok 6\n"; |
18 | }; |
19 | print "ok 5\n"; |
20 | IO::AIO::poll; |
21 | print "ok 7\n"; |
22 | } else { |
23 | print "ok 2\n"; |
24 | aio_stat "/", sub { |
25 | print "ok 3\n"; |
26 | }; |
27 | IO::AIO::poll; |
28 | print "ok 4\n"; |
29 | exit; |
30 | } |
31 | |
32 | print "ok 8\n"; |
33 |