| Revision: | 1.3 |
| Committed: | Tue Oct 24 14:25:53 2006 UTC (20 years ago) by root |
| Content type: | application/x-troff |
| Branch: | MAIN |
| Changes since 1.2: | +8 -4 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.1 | IO::AIO::poll; |
| 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 | IO::AIO::poll; | ||
| 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 |