2000-03-30 17:15:46 -04:00
|
|
|
test_mmap
|
2001-01-14 01:05:51 -04:00
|
|
|
<type 'mmap'>
|
2000-03-30 17:15:46 -04:00
|
|
|
Position of foo: 1.0 pages
|
|
|
|
Length of file: 2.0 pages
|
2001-01-24 17:49:57 -04:00
|
|
|
Contents of byte 0: '\x00'
|
|
|
|
Contents of first 3 bytes: '\x00\x00\x00'
|
2000-03-30 17:15:46 -04:00
|
|
|
|
|
|
|
Modifying file's content...
|
|
|
|
Contents of byte 0: '3'
|
2001-01-24 17:49:57 -04:00
|
|
|
Contents of first 3 bytes: '3\x00\x00'
|
|
|
|
Contents of second page: '\x00foobar\x00'
|
2000-03-30 17:15:46 -04:00
|
|
|
Regex match on mmap (page start, length of match): 1.0 6
|
2000-06-18 01:47:08 -03:00
|
|
|
Seek to zeroth byte
|
|
|
|
Seek to 42nd byte
|
|
|
|
Seek to last byte
|
|
|
|
Try to seek to negative position...
|
|
|
|
Try to seek beyond end of mmap...
|
|
|
|
Try to seek to negative position...
|
2000-07-11 07:45:28 -03:00
|
|
|
Attempting resize()
|
2000-03-30 17:15:46 -04:00
|
|
|
Test passed
|