mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -05:00
ed35d6590e
A common set of functions instead of many separate implementations for creating buffers that can grow when appending data to them. Existing functionality has been ported over. In my early basic testing, the total number of allocations seem at roughly the same amount as before, possibly a few less. See docs/DYNBUF.md for a description of the API. Closes #5300
56 lines
703 B
Plaintext
56 lines
703 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
TrackMemory
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
none
|
|
</server>
|
|
<features>
|
|
TrackMemory
|
|
ipv6
|
|
</features>
|
|
# tool is what to use instead of 'curl'
|
|
<tool>
|
|
lib558
|
|
</tool>
|
|
|
|
<name>
|
|
libtest memory tracking operational
|
|
</name>
|
|
<command>
|
|
nothing
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<file name="log/memdump">
|
|
MEM lib558.c: malloc()
|
|
MEM lib558.c: free()
|
|
MEM strdup.c: realloc()
|
|
MEM strdup.c: realloc()
|
|
MEM escape.c: free()
|
|
</file>
|
|
<stripfile>
|
|
s/^MEM escape.c:\d+ free\(\(nil\)\)[\n]$//
|
|
s/ =.*//
|
|
s/\(.*\)/()/
|
|
s/:\d+/:/
|
|
s:^(MEM |FD )(.*/)(.*):$1$3:
|
|
s/\r\n/\n/
|
|
</stripfile>
|
|
</verify>
|
|
|
|
</testcase>
|