xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | unittest |
| 5 | TrackMemory |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | </reply> |
| 13 | |
| 14 | # Client-side |
| 15 | <client> |
| 16 | <server> |
| 17 | none |
| 18 | </server> |
| 19 | <features> |
| 20 | unittest |
| 21 | TrackMemory |
| 22 | </features> |
| 23 | <name> |
| 24 | unit tests memory tracking operational |
| 25 | </name> |
| 26 | <command> |
| 27 | nothing |
| 28 | </command> |
| 29 | </client> |
| 30 | |
| 31 | # |
| 32 | # Verify data after the test has been "shot" |
| 33 | <verify> |
| 34 | <file name="log/memdump"> |
| 35 | MEM unit%TESTNUMBER.c: malloc() |
| 36 | MEM unit%TESTNUMBER.c: free() |
| 37 | </file> |
| 38 | <stripfile> |
| 39 | s/ =.*// |
| 40 | s/\(.*\)/()/ |
| 41 | s/:\d+/:/ |
| 42 | s:^(MEM )(.*/)(.*):$1$3: |
| 43 | s/\r\n/\n/ |
| 44 | s/^MEM getenv.c: realloc\(\)[\n]$// |
| 45 | s/^MEM getenv.c: free\(\)[\n]$// |
| 46 | </stripfile> |
| 47 | </verify> |
| 48 | </testcase> |