Revision: | 1.4 |
Committed: | Tue Oct 24 16:35:04 2006 UTC (17 years, 8 months ago) by root |
Content type: | application/x-troff |
Branch: | MAIN |
CVS Tags: | rel-3_31, rel-2_32, rel-2_33, rel-2_31, rel-2_6, rel-2_4, rel-2_5, rel-2_2, rel-2_3, rel-2_0, rel-2_1, rel-3_65, rel-2_21, rel-3_71, rel-3_7, rel-3_6, rel-3_5, rel-3_4, rel-3_3, rel-3_2, rel-3_1, rel-3_0, rel-2_51, rel-3_261, rel-3_01, rel-3_02, rel-3_03, rel-3_04, rel-3_05, rel-3_06, rel-3_07, rel-2_41, rel-3_19, rel-3_18, rel-3_17, rel-3_16, rel-3_15, rel-3_26, rel-3_25, rel-3_22, rel-3_23, rel-3_21, rel-2_61, rel-2_62 |
Changes since 1.3: | +2 -2 lines |
Log Message: | *** empty log message *** |
# | User | Rev | Content |
---|---|---|---|
1 | root | 1.1 | #!/usr/bin/perl |
2 | |||
3 | use Test; | ||
4 | use IO::AIO; | ||
5 | |||
6 | # this is a lame test, but.... | ||
7 | |||
8 | root | 1.3 | BEGIN { plan tests => 9 } |
9 | root | 1.1 | |
10 | IO::AIO::min_parallel 2; | ||
11 | |||
12 | root | 1.3 | aio_nop sub { |
13 | print "ok 6\n"; | ||
14 | }; | ||
15 | |||
16 | root | 1.1 | print "ok 1\n"; |
17 | |||
18 | if (open FH, "-|") { | ||
19 | print while <FH>; | ||
20 | aio_stat "/", sub { | ||
21 | root | 1.3 | print "ok 7\n"; |
22 | root | 1.1 | }; |
23 | root | 1.2 | print "ok 5\n"; |
24 | root | 1.4 | IO::AIO::poll while IO::AIO::nreqs; |
25 | root | 1.3 | print "ok 8\n"; |
26 | root | 1.1 | } else { |
27 | root | 1.2 | print "ok 2\n"; |
28 | root | 1.1 | aio_stat "/", sub { |
29 | root | 1.2 | print "ok 3\n"; |
30 | root | 1.1 | }; |
31 | root | 1.4 | IO::AIO::poll while IO::AIO::nreqs; |
32 | root | 1.2 | print "ok 4\n"; |
33 | root | 1.1 | exit; |
34 | } | ||
35 | |||
36 | root | 1.3 | print "ok 9\n"; |
37 | root | 1.1 |