mirror of
https://github.com/moparisthebest/curl
synced 2024-12-26 10:08:48 -05:00
e2b4df7b5e
This makes the tests easier to copy and relocate to other test numbers without having to update content. Closes #6738
60 lines
836 B
Plaintext
60 lines
836 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>
|
|
lib%TESTNUMBER
|
|
</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 easy.c: malloc()
|
|
MEM lib%TESTNUMBER.c: malloc()
|
|
MEM lib%TESTNUMBER.c: free()
|
|
MEM dynbuf.c: realloc()
|
|
MEM dynbuf.c: realloc()
|
|
MEM escape.c: free()
|
|
MEM easy.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/
|
|
s/^MEM getenv.c: realloc\(\)[\n]$//
|
|
s/^MEM getenv.c: free\(\)[\n]$//
|
|
</stripfile>
|
|
</verify>
|
|
|
|
</testcase>
|