diff options
| author | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-24 14:25:41 -0600 |
|---|---|---|
| committer | Sean Kurtz <seankurtz75@gmail.com> | 2026-11-24 14:25:41 -0600 |
| commit | e7e469d8f3c48852786468ceb668afe6517c37c2 (patch) | |
| tree | 9bc7af78c1dc79cd97b8ea582e8dc83f7ce8a5ce /bench/git@git.abendless.com:/srv | |
| parent | 2b257338481007b88331ae445b26ff99bdbf8977 (diff) | |
| download | zash-e7e469d8f3c48852786468ceb668afe6517c37c2.tar.gz | |
test: fail when zash leaks under LE's heap checker
HEAPCHK with a call depth and no per-call walk makes LE write the heap
storage diagnostics into a CEEDUMP at normal termination: every
allocation still live at exit, with the traceback that made it. A
shell leaves working storage live on purpose, so the total says nothing
by itself; a leak shows as the total growing with the work done.
tests/zos/leak.sh therefore runs one builtin-only loop body at 100 and
1000 iterations in the same shell, sums the live bytes out of each
report, and fails if the second run is more than 2 KiB larger.
`make zos-leakcheck` is the target: it points _CEE_DMPTARG at
build/leaks and skips zash/limits, which recurses deep enough to run out
of storage under the checker.
Diffstat (limited to 'bench/git@git.abendless.com:/srv')
0 files changed, 0 insertions, 0 deletions
