mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
e2b4df7b5e
This makes the tests easier to copy and relocate to other test numbers without having to update content. Closes #6738
49 lines
626 B
Plaintext
49 lines
626 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
unittest
|
|
TrackMemory
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
none
|
|
</server>
|
|
<features>
|
|
unittest
|
|
TrackMemory
|
|
</features>
|
|
<name>
|
|
unit tests memory tracking operational
|
|
</name>
|
|
<command>
|
|
nothing
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<file name="log/memdump">
|
|
MEM unit%TESTNUMBER.c: malloc()
|
|
MEM unit%TESTNUMBER.c: free()
|
|
</file>
|
|
<stripfile>
|
|
s/ =.*//
|
|
s/\(.*\)/()/
|
|
s/:\d+/:/
|
|
s:^(MEM )(.*/)(.*):$1$3:
|
|
s/\r\n/\n/
|
|
s/^MEM getenv.c: realloc\(\)[\n]$//
|
|
s/^MEM getenv.c: free\(\)[\n]$//
|
|
</stripfile>
|
|
</verify>
|
|
</testcase>
|