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.2 by root, Sun Jul 10 18:16:50 2005 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 = ""; 40$aioread = "xxxyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy";
41 41
42aio_read $pwd, 7, 15, $aioread, 0, sub { 42aio_read $pwd, 7, 15, $aioread, 3, sub {
43 print +($aioread eq $sysread) ? "ok" : "not ok", " 2\n"; 43 print +($aioread eq "xxx$sysread") ? "ok" : "not ok", " 2\n";
44}; 44};
45 45
46pcb; 46pcb;
47 47

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines