aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKamil Dudka <kdudka@redhat.com>2012-04-16 15:01:15 +0200
committerKamil Dudka <kdudka@redhat.com>2012-04-16 20:11:47 +0200
commit4c385cf8960c05c33a2b7d68f6aaced462759cbc (patch)
tree65971432ce64abc61e1e393c3e23a95b73e5af06 /tests
parent7d4ed0b10e66f5a4bf8d215be50acfa81f02a3dd (diff)
tests/valgrind.pm: suppress memleaks of NSS_InitContext()
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=745224
Diffstat (limited to 'tests')
-rw-r--r--tests/valgrind.pm9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/valgrind.pm b/tests/valgrind.pm
index 78523ead6..f811993ea 100644
--- a/tests/valgrind.pm
+++ b/tests/valgrind.pm
@@ -36,6 +36,7 @@ sub valgrindparse {
my @o;
my $bt=0;
+ my $nssinit=0;
open(VAL, "<$file");
while(<VAL>) {
@@ -53,9 +54,14 @@ sub valgrindparse {
$us++;
} #else {print "Not our source: $func, $source, $line\n";}
}
+
+ # the memory leakage within NSS_InitContext is not a bug of curl
+ if($w =~ /NSS_InitContext/) {
+ $nssinit++;
+ }
}
else {
- if($us) {
+ if($us and not $nssinit) {
# the stack trace included source details about us
$error++;
@@ -71,6 +77,7 @@ sub valgrindparse {
}
$bt = 0; # no more backtrace
$us = 0;
+ $nssinit = 0;
}
}
else {