Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | test_mmap |
2 | <type 'mmap.mmap'> | |
3 | Position of foo: 1.0 pages | |
4 | Length of file: 2.0 pages | |
5 | Contents of byte 0: '\x00' | |
6 | Contents of first 3 bytes: '\x00\x00\x00' | |
7 | ||
8 | Modifying file's content... | |
9 | Contents of byte 0: '3' | |
10 | Contents of first 3 bytes: '3\x00\x00' | |
11 | Contents of second page: '\x00foobar\x00' | |
12 | Regex match on mmap (page start, length of match): 1.0 6 | |
13 | Seek to zeroth byte | |
14 | Seek to 42nd byte | |
15 | Seek to last byte | |
16 | Try to seek to negative position... | |
17 | Try to seek beyond end of mmap... | |
18 | Try to seek to negative position... | |
19 | Attempting resize() | |
20 | Creating 10 byte test data file. | |
21 | Opening mmap with access=ACCESS_READ | |
22 | Ensuring that readonly mmap can't be slice assigned. | |
23 | Ensuring that readonly mmap can't be item assigned. | |
24 | Ensuring that readonly mmap can't be write() to. | |
25 | Ensuring that readonly mmap can't be write_byte() to. | |
26 | Ensuring that readonly mmap can't be resized. | |
27 | Opening mmap with size too big | |
28 | Opening mmap with access=ACCESS_WRITE | |
29 | Modifying write-through memory map. | |
30 | Opening mmap with access=ACCESS_COPY | |
31 | Modifying copy-on-write memory map. | |
32 | Ensuring copy-on-write maps cannot be resized. | |
33 | Ensuring invalid access parameter raises exception. | |
34 | Test passed |