1
0
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:
Darshit Shah 2015-06-16 20:30:53 +05:30
parent 103f940950
commit 58702ffd4f
5 changed files with 59 additions and 2 deletions

View File

@ -113,6 +113,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 ' \
'--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"):
cmd_line = '%s %s %s ' % (os.getenv("VALGRIND_TESTS", ""), cmd_line = '%s %s %s ' % (os.getenv("VALGRIND_TESTS", ""),

View 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.*
}

View File

@ -150,7 +150,7 @@ my $valgrind = $ENV{VALGRIND_TESTS};
if (!defined $valgrind || $valgrind eq "" || $valgrind == 0) { if (!defined $valgrind || $valgrind eq "" || $valgrind == 0) {
# Valgrind not requested - leave $cmdline as it is # Valgrind not requested - leave $cmdline as it is
} elsif ($valgrind == 1) { } 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 { } else {
$cmdline = $valgrind . " " . $cmdline; $cmdline = $valgrind . " " . $cmdline;
} }

View File

@ -149,7 +149,7 @@ my $valgrind = $ENV{VALGRIND_TESTS};
if (!defined $valgrind || $valgrind eq "" || $valgrind == 0) { if (!defined $valgrind || $valgrind eq "" || $valgrind == 0) {
# Valgrind not requested - leave $cmdline as it is # Valgrind not requested - leave $cmdline as it is
} elsif ($valgrind == 1) { } 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 { } else {
$cmdline = $valgrind . " " . $cmdline; $cmdline = $valgrind . " " . $cmdline;
} }

View 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.*
}