Valgrind test suppression

This commit is contained in:
Roger A. Light
2025-10-10 20:58:10 +01:00
parent 602cd2be42
commit 7fa7c99a0c
2 changed files with 41 additions and 1 deletions

40
test/broker/test.supp Normal file
View File

@@ -0,0 +1,40 @@
{
openssl_CRYPTO_get_ex_new_index
Memcheck:Leak
match-leak-kinds: reachable
...
fun:CRYPTO_get_ex_new_index
...
}
{
dl_reachable_leaks
Memcheck:Leak
match-leak-kinds: reachable
...
fun:_dl_catch_error
}
{
openssl_CRYPTO_THREAD_run_once
Memcheck:Leak
match-leak-kinds: reachable
...
fun:CRYPTO_THREAD_run_once
...
}
{
dl_open_reachable
Memcheck:Leak
match-leak-kinds: reachable
...
fun:_dl_open
...
}
{
MHD_quick_close
CoreError:FdBadClose
fun:__syscall_cancel
fun:close
fun:MHD_start_daemon_va
fun:MHD_start_daemon
...
}

View File

@@ -87,7 +87,7 @@ def start_broker(filename, cmd=None, port=0, use_conf=False, expect_fail=False,
elif os.environ.get('MOSQ_USE_VALGRIND') == 'failgrind':
cmd = ['fg-helper'] + cmd
else:
cmd = ['valgrind', '-q', '--track-fds=yes', '--trace-children=yes', '--leak-check=full', '--show-leak-kinds=all', '--log-file='+logfile] + cmd
cmd = ['valgrind', '-q', '--gen-suppressions=all', '--suppressions=test.supp', '--track-fds=yes', '--trace-children=yes', '--leak-check=full', '--show-leak-kinds=all', '--log-file='+logfile] + cmd
vg_logfiles.append(logfile)
vg_index += 1
timeout = 1