mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Add Valgrind suppression for libidn.so at idna_to_ascii_4z
* tests/WgetTests.pm (run): Include suppression file when running Valgrind. * tests/valgrind-suppressions: Add suppression for idn_to_ascii_4z. * tests/Makefile.am: Add valgrind-suppressions to EXTRA_DIST.
This commit is contained in:
parent
bef5945202
commit
f4072e5d0b
@ -131,7 +131,7 @@ PX_TESTS = \
|
|||||||
|
|
||||||
EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
|
EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \
|
||||||
WgetTests.pm WgetFeature.pm WgetFeature.cfg $(PX_TESTS) \
|
WgetTests.pm WgetFeature.pm WgetFeature.cfg $(PX_TESTS) \
|
||||||
certs
|
certs valgrind-suppressions
|
||||||
|
|
||||||
check_PROGRAMS = unit-tests
|
check_PROGRAMS = unit-tests
|
||||||
unit_tests_SOURCES =
|
unit_tests_SOURCES =
|
||||||
|
@ -14,6 +14,12 @@ use POSIX qw(locale_h);
|
|||||||
use locale;
|
use locale;
|
||||||
|
|
||||||
our $WGETPATH = '../src/wget';
|
our $WGETPATH = '../src/wget';
|
||||||
|
our $VALGRIND_SUPP_FILE = Cwd::getcwd();
|
||||||
|
if (defined $ENV{'srcdir'}) {
|
||||||
|
$VALGRIND_SUPP_FILE = $VALGRIND_SUPP_FILE
|
||||||
|
. "/" . $ENV{'srcdir'};
|
||||||
|
}
|
||||||
|
$VALGRIND_SUPP_FILE = $VALGRIND_SUPP_FILE . '/valgrind-suppressions';
|
||||||
|
|
||||||
my @unexpected_downloads = ();
|
my @unexpected_downloads = ();
|
||||||
|
|
||||||
@ -122,7 +128,8 @@ sub run
|
|||||||
elsif ($valgrind == 1)
|
elsif ($valgrind == 1)
|
||||||
{
|
{
|
||||||
$cmdline =
|
$cmdline =
|
||||||
'valgrind --error-exitcode=301 --leak-check=yes --track-origins=yes '
|
'valgrind --suppressions=' . $VALGRIND_SUPP_FILE
|
||||||
|
. ' --error-exitcode=301 --leak-check=yes --track-origins=yes '
|
||||||
. $cmdline;
|
. $cmdline;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
8
tests/valgrind-suppressions
Normal file
8
tests/valgrind-suppressions
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
False positive in libidn.so. More info: https://bugzilla.redhat.com/show_bug.cgi?id=678518
|
||||||
|
Memcheck:Addr4
|
||||||
|
fun:idna_to_ascii_4z
|
||||||
|
fun:idna_to_ascii_8z
|
||||||
|
fun:idn_encode
|
||||||
|
fun:url_parse
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user