2013-03-16 02:58:00 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
TrackMemory
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
none
|
|
|
|
</server>
|
|
|
|
<features>
|
|
|
|
TrackMemory
|
2024-07-16 06:41:32 +08:00
|
|
|
IPv6
|
2013-03-16 02:58:00 +08:00
|
|
|
</features>
|
|
|
|
# tool is what to use instead of 'curl'
|
|
|
|
<tool>
|
2021-03-13 00:38:26 +08:00
|
|
|
lib%TESTNUMBER
|
2013-03-16 02:58:00 +08:00
|
|
|
</tool>
|
|
|
|
|
|
|
|
<name>
|
|
|
|
libtest memory tracking operational
|
|
|
|
</name>
|
|
|
|
<command>
|
|
|
|
nothing
|
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2023-03-29 09:20:54 +08:00
|
|
|
<file name="%LOGDIR/memdump">
|
2021-01-05 07:03:31 +08:00
|
|
|
MEM easy.c: malloc()
|
2021-03-13 00:38:26 +08:00
|
|
|
MEM lib%TESTNUMBER.c: malloc()
|
|
|
|
MEM lib%TESTNUMBER.c: free()
|
2020-09-09 21:41:25 +08:00
|
|
|
MEM dynbuf.c: realloc()
|
|
|
|
MEM dynbuf.c: realloc()
|
2013-03-16 07:59:17 +08:00
|
|
|
MEM escape.c: free()
|
2021-01-05 07:03:31 +08:00
|
|
|
MEM easy.c: free()
|
2013-03-16 02:58:00 +08:00
|
|
|
</file>
|
|
|
|
<stripfile>
|
2018-01-19 05:17:05 +08:00
|
|
|
s/^MEM escape.c:\d+ free\(\(nil\)\)[\n]$//
|
2013-03-16 02:58:00 +08:00
|
|
|
s/ =.*//
|
|
|
|
s/\(.*\)/()/
|
|
|
|
s/:\d+/:/
|
2016-07-21 23:06:04 +08:00
|
|
|
s:^(MEM |FD )(.*/)(.*):$1$3:
|
2020-01-06 18:11:50 +08:00
|
|
|
s/\r\n/\n/
|
2020-08-02 21:41:49 +08:00
|
|
|
s/^MEM getenv.c: realloc\(\)[\n]$//
|
|
|
|
s/^MEM getenv.c: free\(\)[\n]$//
|
2013-03-16 02:58:00 +08:00
|
|
|
</stripfile>
|
|
|
|
</verify>
|
|
|
|
|
|
|
|
</testcase>
|