mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Add valgrind suppression files for HTTPS tests
* testenv/test/base_test.py: Use Valgrind SSL suppressions file for tests * testenv/valgrind-suppression-ssl, tests/valgrind-suppression-ssl: Add new suppression files to suppress OpenSSL errors in valgrind * tests/test-proxied-https-auth.px: Use the valgrind SSL suppressions file for the test * tests/test-proxied-https-auth-keepalive.px: Same
This commit is contained in:
parent
103f940950
commit
58702ffd4f
@ -113,6 +113,7 @@ class BaseTest:
|
||||
cmd_line = 'valgrind --error-exitcode=301 ' \
|
||||
'--leak-check=yes ' \
|
||||
'--track-origins=yes ' \
|
||||
'--suppressions=../valgrind-suppression-ssl ' \
|
||||
'%s %s ' % (wget_path, wget_options)
|
||||
elif valgrind not in ("", "0"):
|
||||
cmd_line = '%s %s %s ' % (os.getenv("VALGRIND_TESTS", ""),
|
||||
|
28
testenv/valgrind-suppression-ssl
Normal file
28
testenv/valgrind-suppression-ssl
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
<insert_a_suppression_name_here>
|
||||
Memcheck:Cond
|
||||
...
|
||||
obj:*/libcrypto.so.*
|
||||
}
|
||||
|
||||
{
|
||||
<insert_a_suppression_name_here>
|
||||
Memcheck:Cond
|
||||
...
|
||||
obj:*/libssl.so.*
|
||||
}
|
||||
|
||||
{
|
||||
<insert_a_suppression_name_here>
|
||||
Memcheck:Value8
|
||||
...
|
||||
obj:*/libcrypto.so.*
|
||||
}
|
||||
|
||||
{
|
||||
<insert_a_suppression_name_here>
|
||||
Memcheck:Param
|
||||
write(buf)
|
||||
...
|
||||
obj:*/libcrypto.so.*
|
||||
}
|
@ -150,7 +150,7 @@ my $valgrind = $ENV{VALGRIND_TESTS};
|
||||
if (!defined $valgrind || $valgrind eq "" || $valgrind == 0) {
|
||||
# Valgrind not requested - leave $cmdline as it is
|
||||
} elsif ($valgrind == 1) {
|
||||
$cmdline = "valgrind --error-exitcode=301 --leak-check=yes --track-origins=yes " . $cmdline;
|
||||
$cmdline = "valgrind --suppressions=valgrind-suppressions-ssl --error-exitcode=301 --leak-check=yes --track-origins=yes " . $cmdline;
|
||||
} else {
|
||||
$cmdline = $valgrind . " " . $cmdline;
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ my $valgrind = $ENV{VALGRIND_TESTS};
|
||||
if (!defined $valgrind || $valgrind eq "" || $valgrind == 0) {
|
||||
# Valgrind not requested - leave $cmdline as it is
|
||||
} elsif ($valgrind == 1) {
|
||||
$cmdline = "valgrind --error-exitcode=301 --leak-check=yes --track-origins=yes " . $cmdline;
|
||||
$cmdline = "valgrind --suppressions=valgrind-suppressions-ssl --error-exitcode=301 --leak-check=yes --track-origins=yes " . $cmdline;
|
||||
} else {
|
||||
$cmdline = $valgrind . " " . $cmdline;
|
||||
}
|
||||
|
28
tests/valgrind-suppressions-ssl
Normal file
28
tests/valgrind-suppressions-ssl
Normal file
@ -0,0 +1,28 @@
|
||||
{
|
||||
<insert_a_suppression_name_here>
|
||||
Memcheck:Cond
|
||||
...
|
||||
obj:*/libcrypto.so.*
|
||||
}
|
||||
|
||||
{
|
||||
<insert_a_suppression_name_here>
|
||||
Memcheck:Cond
|
||||
...
|
||||
obj:*/libssl.so.*
|
||||
}
|
||||
|
||||
{
|
||||
<insert_a_suppression_name_here>
|
||||
Memcheck:Value8
|
||||
...
|
||||
obj:*/libcrypto.so.*
|
||||
}
|
||||
|
||||
{
|
||||
<insert_a_suppression_name_here>
|
||||
Memcheck:Param
|
||||
write(buf)
|
||||
...
|
||||
obj:*/libcrypto.so.*
|
||||
}
|
Loading…
Reference in New Issue
Block a user