]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: raise two memory limits
authorDaniel Stenberg <daniel@haxx.se>
Sun, 13 Jul 2025 14:59:36 +0000 (16:59 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 13 Jul 2025 15:40:47 +0000 (17:40 +0200)
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

tests/data/test518
tests/data/test537
tests/runtests.pl

index 05a809bf32c6f9848af57bfee61bad52aec71814..acc4319dd3bdc288752c8bb0f53bc8637872c7d1 100644 (file)
@@ -63,5 +63,8 @@ Accept: */*
 <valgrind>
 disable
 </valgrind>
+<limits>
+Maximum allocated: 1100000
+</limits>
 </verify>
 </testcase>
index 79678c38e916ec6a62539b259f1ea1bb5ac830fa..7ef864443fec0429c3c22271872fbed401bd1351 100644 (file)
@@ -60,5 +60,8 @@ Host: %HOSTIP:%HTTPPORT
 Accept: */*\r
 \r
 </protocol>
+<limits>
+Maximum allocated: 3200000
+</limits>
 </verify>
 </testcase>
index 70aee2a07deddf36b77f189971b67b25306d2a50..184483f807f17319c80c02e0c57b707a9a06c114 100755 (executable)
@@ -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;