xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/vstream_test.ref (revision 4a6720548cbf2e9325ed049c8a675ae86609f654)
1buffer size test: copy text with 1 buffer size, ignore requests to shrink
2abcdef
3actual read/write buffer sizes: 1/1
4
5buffer size test: copy text with 2 buffer size, ignore requests to shrink
6ghijkl
7actual read/write buffer sizes: 2/2
8
9buffer size test: copy text with 1 buffer size, ignore requests to shrink
10mnopqr
11actual read/write buffer sizes: 2/2
12
13formatting test: print a number
141234567890
15
16memory stream test prep: prefill the VSTRING
17VSTRING content length: 8/8, content: 01234567
18
19memory stream test: open the VSTRING for writing, overwrite, close
20initial memory VSTREAM write offset: 0/8
21final memory VSTREAM write offset: 5/8
22VSTRING content length: 5/8, content: hallo
23
24memory stream test: open the VSTRING for append, write multiple, then overwrite 1
25initial memory VSTREAM write offset: 5/8
26final memory VSTREAM write offset: 11/16
27VSTRING content length: 11/16, content: hallo world
28
29replace second character and close
30VSTRING content length: 11/16, content: hello world
31
32memory stream test: open VSTRING for reading, then read
33initial memory VSTREAM read offset: 0/11
34reading memory VSTREAM: hello world
35final memory VSTREAM read offset: 11/11
36seeking to offset 12 should work: PASS
37VSTREAM_GETC should return VSTREAM_EOF
38PASS
39final memory VSTREAM read offset: 12/11
40VSTRING content length: 11/16, content: hello world
41
42