Suppress memory leak in libunbound to get test 125 passing on Bionic.

This commit is contained in:
Jim Hague 2019-12-18 10:23:45 +00:00
parent 9c3321cdfc
commit 0226096974
1 changed files with 13 additions and 1 deletions

View File

@ -20,8 +20,20 @@ localhost.
-S
-X
EOT
cat >125.supp <<EOT
{
<bionic_leak_nettle_ecc_point_init>
Memcheck:Leak
match-leak-kinds: definite
fun:malloc
fun:__gmp_default_allocate
fun:_nettle_gmp_alloc_limbs
fun:nettle_ecc_point_init
obj:/usr/lib/x86_64-linux-gnu/libunbound.so.2.5.6
}
EOT
(
if ! valgrind -v --log-file=valgrind.log --leak-check=full --error-exitcode=1 --track-origins=yes "${GETDNS_QUERY}" -F queries -f "${TPKG_NAME}.ds" +dnssec_return_validation_chain
if ! valgrind -v --log-file=valgrind.log --suppressions=125.supp --leak-check=full --error-exitcode=1 --track-origins=yes "${GETDNS_QUERY}" -F queries -f "${TPKG_NAME}.ds" +dnssec_return_validation_chain
then
exit 1
fi