ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/t/02_read.t
(Generate patch)

Comparing IO-AIO/t/02_read.t (file contents):
Revision 1.3 by root, Mon Oct 30 23:30:00 2006 UTC vs.
Revision 1.4 by root, Sun Jun 3 09:44:17 2007 UTC

35sysseek $pwd, 7, 0; 35sysseek $pwd, 7, 0;
36sysread $pwd, $sysread, 15; 36sysread $pwd, $sysread, 15;
37 37
38# I found no way to silence the stupid "uninitialized...subroutine entry" warning. 38# I found no way to silence the stupid "uninitialized...subroutine entry" warning.
39# this is just braindamaged. Don't use -w, it introduces more bugs than it fixes. 39# this is just braindamaged. Don't use -w, it introduces more bugs than it fixes.
40$aioread = "xxx"; 40$aioread = "xxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy";
41 41
42aio_read $pwd, 7, 15, $aioread, 3, sub { 42aio_read $pwd, 7, 15, $aioread, 3, sub {
43 print +($aioread eq "xxx$sysread") ? "ok" : "not ok", " 2\n"; 43 print +($aioread eq "xxx$sysread") ? "ok" : "not ok", " 2\n";
44}; 44};
45 45

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines