Skip to content

Commit 7fa7c99

Browse files
committed
Valgrind test suppression
1 parent 602cd2b commit 7fa7c99

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

test/broker/test.supp

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
openssl_CRYPTO_get_ex_new_index
3+
Memcheck:Leak
4+
match-leak-kinds: reachable
5+
...
6+
fun:CRYPTO_get_ex_new_index
7+
...
8+
}
9+
{
10+
dl_reachable_leaks
11+
Memcheck:Leak
12+
match-leak-kinds: reachable
13+
...
14+
fun:_dl_catch_error
15+
}
16+
{
17+
openssl_CRYPTO_THREAD_run_once
18+
Memcheck:Leak
19+
match-leak-kinds: reachable
20+
...
21+
fun:CRYPTO_THREAD_run_once
22+
...
23+
}
24+
{
25+
dl_open_reachable
26+
Memcheck:Leak
27+
match-leak-kinds: reachable
28+
...
29+
fun:_dl_open
30+
...
31+
}
32+
{
33+
MHD_quick_close
34+
CoreError:FdBadClose
35+
fun:__syscall_cancel
36+
fun:close
37+
fun:MHD_start_daemon_va
38+
fun:MHD_start_daemon
39+
...
40+
}

test/mosq_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def start_broker(filename, cmd=None, port=0, use_conf=False, expect_fail=False,
8787
elif os.environ.get('MOSQ_USE_VALGRIND') == 'failgrind':
8888
cmd = ['fg-helper'] + cmd
8989
else:
90-
cmd = ['valgrind', '-q', '--track-fds=yes', '--trace-children=yes', '--leak-check=full', '--show-leak-kinds=all', '--log-file='+logfile] + cmd
90+
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
9191
vg_logfiles.append(logfile)
9292
vg_index += 1
9393
timeout = 1

0 commit comments

Comments
 (0)