--- AnyEvent/t/io_common 2012/04/04 02:18:30 1.6 +++ AnyEvent/t/io_common 2012/04/13 08:34:08 1.8 @@ -2,6 +2,8 @@ $| = 1; +# not tested: symlink, readlink, link, utime, chown, chmod + BEGIN { print "1..37\n"; print "ok 1 # MODEL=$AnyEvent::IO::MODEL\n"; @@ -16,7 +18,7 @@ sub t { my $ok = shift; - my $f = "io_" . shift; + my $f = "aio_" . shift; $f->(@_, my $cv = AE::cv); my @res = $cv->recv; @@ -47,13 +49,15 @@ t 1, seek => $fh, 3, 0; t 1, write => $fh, "t1"; +#t 1, truncate => $fh, 5+5; # not available on windows + t 1, stat => $fh; print -s _ != 10 ? "not " : "", "ok ", $t++, " # stat size\n"; t 1, close => $fh; t 1, stat => "$DIR/test"; -print -s _ != 10 ? "not " : "", "ok ", $t++, " # stat size\n"; +print -s _ != 10 ? "not " : "", "ok ", $t++, " # stat size (", -s _,")\n"; t 1, lstat => "$DIR/test"; print -s _ != 10 ? "not " : "", "ok ", $t++, " # lstat size\n";