tests: raise two memory limits

Runing the tests locally without valgrind test 518 and 537 would run
over their limits.

Plus init a variable in runtests.pl to avoid a warning output.

Closes #17919
This commit is contained in:
Daniel Stenberg 2025-07-13 16:59:36 +02:00
parent 826a32dff3
commit 96294df02a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 7 additions and 1 deletions

View file

@ -63,5 +63,8 @@ Accept: */*
<valgrind>
disable
</valgrind>
<limits>
Maximum allocated: 1100000
</limits>
</verify>
</testcase>

View file

@ -60,5 +60,8 @@ Host: %HOSTIP:%HTTPPORT
Accept: */*
</protocol>
<limits>
Maximum allocated: 3200000
</limits>
</verify>
</testcase>

View file

@ -1700,7 +1700,7 @@ sub singletest_check {
}
my @more=`$memanalyze -v "$logdir/$MEMDUMP"`;
my $allocs;
my $max;
my $max = 0;
for(@more) {
if(/^Allocations: (\d+)/) {
$allocs = $1;