mirror of
https://github.com/mirror/wget.git
synced 2025-01-27 12:50:13 +08:00
Add --gen-suppressions=all to valgrind options
* testenv/test/base_test.py: Add --gen-suppressions=all to valgrind options * tests/Test-proxied-https-auth.px: Likewise * tests/WgetTests.pm: Likewise
This commit is contained in:
parent
f4dfddfaf3
commit
e1c4a2705f
@ -131,6 +131,7 @@ class BaseTest:
|
|||||||
cmd_line = 'valgrind --error-exitcode=301 ' \
|
cmd_line = 'valgrind --error-exitcode=301 ' \
|
||||||
'--leak-check=yes ' \
|
'--leak-check=yes ' \
|
||||||
'--track-origins=yes ' \
|
'--track-origins=yes ' \
|
||||||
|
'--gen-suppressions=all ' \
|
||||||
'--suppressions=../valgrind-suppression-ssl ' \
|
'--suppressions=../valgrind-suppression-ssl ' \
|
||||||
'%s %s ' % (wget_path, wget_options)
|
'%s %s ' % (wget_path, wget_options)
|
||||||
elif valgrind not in ("", "0"):
|
elif valgrind not in ("", "0"):
|
||||||
|
@ -166,7 +166,7 @@ if (!defined $valgrind || $valgrind eq "" || $valgrind == 0) {
|
|||||||
} elsif ($valgrind == 1) {
|
} elsif ($valgrind == 1) {
|
||||||
$cmdline =
|
$cmdline =
|
||||||
'valgrind --suppressions=' . $VALGRIND_SUPP_FILE
|
'valgrind --suppressions=' . $VALGRIND_SUPP_FILE
|
||||||
. ' --error-exitcode=301 --leak-check=yes --track-origins=yes '
|
. ' --error-exitcode=301 --leak-check=yes --track-origins=yes --gen-suppressions=all '
|
||||||
. $cmdline;
|
. $cmdline;
|
||||||
} else {
|
} else {
|
||||||
$cmdline = $valgrind . " " . $cmdline;
|
$cmdline = $valgrind . " " . $cmdline;
|
||||||
|
@ -145,7 +145,7 @@ sub run
|
|||||||
{
|
{
|
||||||
$cmdline =
|
$cmdline =
|
||||||
'valgrind --suppressions=' . $VALGRIND_SUPP_FILE
|
'valgrind --suppressions=' . $VALGRIND_SUPP_FILE
|
||||||
. ' --error-exitcode=301 --leak-check=yes --track-origins=yes '
|
. ' --error-exitcode=301 --leak-check=yes --track-origins=yes --gen-suppressions=all '
|
||||||
. $cmdline;
|
. $cmdline;
|
||||||
}
|
}
|
||||||
elsif ($valgrind ne q{} && $valgrind ne "0")
|
elsif ($valgrind ne q{} && $valgrind ne "0")
|
||||||
|
Loading…
Reference in New Issue
Block a user