quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test558 (844B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 TrackMemory
      5 </keywords>
      6 </info>
      7 
      8 #
      9 # Server-side
     10 <reply>
     11 </reply>
     12 
     13 # Client-side
     14 <client>
     15 <server>
     16 none
     17 </server>
     18 <features>
     19 TrackMemory
     20 IPv6
     21 </features>
     22 # tool is what to use instead of 'curl'
     23 <tool>
     24 lib%TESTNUMBER
     25 </tool>
     26 
     27 <name>
     28 libtest memory tracking operational
     29 </name>
     30 <command>
     31 nothing
     32 </command>
     33 </client>
     34 
     35 #
     36 # Verify data after the test has been "shot"
     37 <verify>
     38 <file name="%LOGDIR/memdump">
     39 MEM easy.c: malloc()
     40 MEM lib%TESTNUMBER.c: malloc()
     41 MEM lib%TESTNUMBER.c: free()
     42 MEM dynbuf.c: realloc()
     43 MEM dynbuf.c: realloc()
     44 MEM escape.c: free()
     45 MEM easy.c: free()
     46 </file>
     47 <stripfile>
     48 s/^MEM escape.c:\d+ free\(\(nil\)\)[\n]$//
     49 s/ =.*//
     50 s/\(.*\)/()/
     51 s/:\d+/:/
     52 s:^(MEM |FD )(.*[/\\])(.*):$1$3:
     53 s/\r\n/\n/
     54 s/^MEM getenv.c: realloc\(\)[\n]$//
     55 s/^MEM getenv.c: free\(\)[\n]$//
     56 </stripfile>
     57 </verify>
     58 
     59 </testcase>