Run unit test files sequentially through valgrind

This commit is contained in:
Lovell Fuller 2017-12-18 19:57:26 +00:00
parent 9fa04a0b93
commit 13997ca653
2 changed files with 50 additions and 10 deletions

View File

@ -7,12 +7,14 @@ fi
curl -o ./test/leak/libvips.supp https://raw.githubusercontent.com/jcupitt/libvips/master/libvips.supp curl -o ./test/leak/libvips.supp https://raw.githubusercontent.com/jcupitt/libvips/master/libvips.supp
G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind \ for test in ./test/unit/*.js; do
--suppressions=test/leak/libvips.supp \ G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind \
--suppressions=test/leak/sharp.supp \ --suppressions=test/leak/libvips.supp \
--gen-suppressions=yes \ --suppressions=test/leak/sharp.supp \
--leak-check=full \ --gen-suppressions=yes \
--show-leak-kinds=definite,indirect,possible \ --leak-check=full \
--num-callers=20 \ --show-leak-kinds=definite,indirect,possible \
--trace-children=yes \ --num-callers=20 \
npm test --trace-children=yes \
mocha --slow=60000 --timeout=120000 "$test";
done

View File

@ -156,10 +156,27 @@
fun:vips_region_generate fun:vips_region_generate
} }
{ {
cond_libvips_col_sRGB2scRGB_8 value_libvips_col_sRGB2scRGB_8
Memcheck:Value8 Memcheck:Value8
fun:vips_col_sRGB2scRGB_8 fun:vips_col_sRGB2scRGB_8
} }
{
value_libvips_col_sRGB2scRGB_line_8
Memcheck:Value8
fun:vips_sRGB2scRGB_line_8
}
{
value_libvips_write_webp
Memcheck:Value8
...
fun:write_webp.constprop.1
fun:vips__webp_write_buffer
}
{
cond_libvips_vips_cast_gen
Memcheck:Cond
fun:vips_cast_gen
}
{ {
cond_libvips_vips_region_fill cond_libvips_vips_region_fill
Memcheck:Cond Memcheck:Cond
@ -270,6 +287,20 @@
... ...
fun:_ZN4node17CreateEnvironmentEPN2v87IsolateEP9uv_loop_sNS0_5LocalINS0_7ContextEEEiPKPKciSB_ fun:_ZN4node17CreateEnvironmentEPN2v87IsolateEP9uv_loop_sNS0_5LocalINS0_7ContextEEEiPKPKciSB_
} }
{
leak_nodejs_Environment_Start
Memcheck:Leak
match-leak-kinds: possible
...
fun:_ZN4node11Environment5StartEiPKPKciS4_b
}
{
leak_nodejs_node9inspector5Agent5Start
Memcheck:Leak
match-leak-kinds: possible
...
fun:_ZN4node9inspector5Agent5StartEPN2v88PlatformEPKcRKNS_12DebugOptionsE
}
{ {
leak_nodejs_icu_getAvailableLocales leak_nodejs_icu_getAvailableLocales
Memcheck:Leak Memcheck:Leak
@ -365,3 +396,10 @@
... ...
fun:_ZN2v88internal8Malloced3NewEm fun:_ZN2v88internal8Malloced3NewEm
} }
{
leak_v8_inspector10toString
Memcheck:Leak
match-leak-kinds: possible
...
fun:_ZN12v8_inspector10toString16ERKNS_10StringViewE
}