tests: 96, 558, 1330: strip build subdirectory dependent leading path

This commit is contained in:
Yang Tse 2013-03-16 00:59:17 +01:00
parent 2ba5f4bf1c
commit 91e2ce6e76
3 changed files with 13 additions and 10 deletions

View File

@ -37,13 +37,14 @@ nothing
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
<file name="log/memdump" mode="text"> <file name="log/memdump" mode="text">
MEM ../../../tests/unit/unit1330.c: malloc() MEM unit1330.c: malloc()
MEM ../../../tests/unit/unit1330.c: free() MEM unit1330.c: free()
</file> </file>
<stripfile> <stripfile>
s/ =.*// s/ =.*//
s/\(.*\)/()/ s/\(.*\)/()/
s/:\d+/:/ s/:\d+/:/
s:^(MEM )(.*/)(.*):$1$3:
</stripfile> </stripfile>
</verify> </verify>

View File

@ -35,17 +35,18 @@ nothing
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
<file name="log/memdump" mode="text"> <file name="log/memdump" mode="text">
MEM ../../../tests/libtest/lib558.c: malloc() MEM lib558.c: malloc()
MEM ../../../tests/libtest/lib558.c: free() MEM lib558.c: free()
MEM ../../lib/escape.c: malloc() MEM escape.c: malloc()
MEM ../../lib/escape.c: realloc() MEM escape.c: realloc()
MEM ../../lib/escape.c: realloc() MEM escape.c: realloc()
MEM ../../lib/escape.c: free() MEM escape.c: free()
</file> </file>
<stripfile> <stripfile>
s/ =.*// s/ =.*//
s/\(.*\)/()/ s/\(.*\)/()/
s/:\d+/:/ s/:\d+/:/
s:^(MEM )(.*/)(.*):$1$3:
</stripfile> </stripfile>
</verify> </verify>

View File

@ -31,12 +31,13 @@ curl memory tracking operational
# Verify data after the test has been "shot" # Verify data after the test has been "shot"
<verify> <verify>
<file name="log/memdump" mode="text"> <file name="log/memdump" mode="text">
MEM ../../src/tool_paramhlp.c MEM tool_paramhlp.c
MEM ../../src/tool_cfgable.c MEM tool_cfgable.c
</file> </file>
<stripfile> <stripfile>
$_ = '' if (($_ !~ /tool_paramhlp/) && ($_ !~ /tool_cfgable/)) $_ = '' if (($_ !~ /tool_paramhlp/) && ($_ !~ /tool_cfgable/))
s/:\d+.*// s/:\d+.*//
s:^(MEM )(.*/)(.*):$1$3:
</stripfile> </stripfile>
</verify> </verify>