mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-02-05 10:40:05 +08:00
Valgrind test suppression
This commit is contained in:
40
test/broker/test.supp
Normal file
40
test/broker/test.supp
Normal 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
|
||||
...
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user