… | … | ||
---|---|---|---|
3 | use Test; | 3 | use Test; |
4 | use IO::AIO; | 4 | use IO::AIO; |
5 | 5 | ||
6 | # this is a lame test, but.... | 6 | # this is a lame test, but.... |
7 | 7 | ||
8 | BEGIN { plan tests => 8 } | 8 | BEGIN { plan tests => 9 } |
9 | 9 | ||
10 | IO::AIO::min_parallel 2; | 10 | IO::AIO::min_parallel 2; |
11 | |||
12 | aio_nop sub { | ||
13 | print "ok 6\n"; | ||
14 | }; | ||
11 | 15 | ||
12 | print "ok 1\n"; | 16 | print "ok 1\n"; |
13 | 17 | ||
14 | if (open FH, "-|") { | 18 | if (open FH, "-|") { |
15 | print while <FH>; | 19 | print while <FH>; |
16 | aio_stat "/", sub { | 20 | aio_stat "/", sub { |
17 | print "ok 6\n"; | 21 | print "ok 7\n"; |
18 | }; | 22 | }; |
19 | print "ok 5\n"; | 23 | print "ok 5\n"; |
20 | IO::AIO::poll; | 24 | IO::AIO::poll; |
21 | print "ok 7\n"; | 25 | print "ok 8\n"; |
22 | } else { | 26 | } else { |
23 | print "ok 2\n"; | 27 | print "ok 2\n"; |
24 | aio_stat "/", sub { | 28 | aio_stat "/", sub { |
25 | print "ok 3\n"; | 29 | print "ok 3\n"; |
26 | }; | 30 | }; |
27 | IO::AIO::poll; | 31 | IO::AIO::poll; |
28 | print "ok 4\n"; | 32 | print "ok 4\n"; |
29 | exit; | 33 | exit; |
30 | } | 34 | } |
31 | 35 | ||
32 | print "ok 8\n"; | 36 | print "ok 9\n"; |
33 | 37 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |