mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Run unit test files sequentially through valgrind
This commit is contained in:
parent
9fa04a0b93
commit
13997ca653
@ -7,6 +7,7 @@ fi
|
||||
|
||||
curl -o ./test/leak/libvips.supp https://raw.githubusercontent.com/jcupitt/libvips/master/libvips.supp
|
||||
|
||||
for test in ./test/unit/*.js; do
|
||||
G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind \
|
||||
--suppressions=test/leak/libvips.supp \
|
||||
--suppressions=test/leak/sharp.supp \
|
||||
@ -15,4 +16,5 @@ G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind \
|
||||
--show-leak-kinds=definite,indirect,possible \
|
||||
--num-callers=20 \
|
||||
--trace-children=yes \
|
||||
npm test
|
||||
mocha --slow=60000 --timeout=120000 "$test";
|
||||
done
|
||||
|
@ -156,10 +156,27 @@
|
||||
fun:vips_region_generate
|
||||
}
|
||||
{
|
||||
cond_libvips_col_sRGB2scRGB_8
|
||||
value_libvips_col_sRGB2scRGB_8
|
||||
Memcheck:Value8
|
||||
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
|
||||
Memcheck:Cond
|
||||
@ -270,6 +287,20 @@
|
||||
...
|
||||
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
|
||||
Memcheck:Leak
|
||||
@ -365,3 +396,10 @@
|
||||
...
|
||||
fun:_ZN2v88internal8Malloced3NewEm
|
||||
}
|
||||
{
|
||||
leak_v8_inspector10toString
|
||||
Memcheck:Leak
|
||||
match-leak-kinds: possible
|
||||
...
|
||||
fun:_ZN12v8_inspector10toString16ERKNS_10StringViewE
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user