Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #238361

Category None
Changed by Daniel Stenberg <danielohnoyoudont@haxx.se>
Changed at Sat 05 Jul 2025 00:03:09
Repository https://api.github.com/repos/curl/curl
Project curl/curl
Branch bagder/memory-limits
Revision 5b3c5d101d0559f8157057f3b11433e80d3ff43c

Comments

runtests: support memory-limits per test

The idea here is to set limits per test how many allocations and maximum
amount of memory it is allowed to use. This is a means to make sure the
number and total size of allocations are kept in check and don't
mistakenly "blow up".

The <verify> part now supports <limits>, and in this section two limits
can be set for each test (verified in debug builds only):

    Allocations: [number of allocation calls]
    Maximum allocated: [maximum concurrent memory allocated]

If runtests.pl detects that the given limits have been exceeded, it
fails the test case with an error.

Test 1 is the first and so far only test setting these limits.

Changed files