<feed xmlns='http://www.w3.org/2005/Atom'>
<title>zash.git/tests/zos/leak.exp, branch main</title>
<subtitle>Fast Almquist-family POSIX shell for z/OS UNIX with bundled libedit</subtitle>
<id>https://git.abendless.com/zash.git/atom?h=main</id>
<link rel='self' href='https://git.abendless.com/zash.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/'/>
<updated>2026-11-24T21:04:07Z</updated>
<entry>
<title>test: report leak checking as a verdict, not an exact figure</title>
<updated>2026-11-24T21:04:07Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T21:04:07Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=e633a576ec28f4788f842273fc60adab6999b7dc'/>
<id>urn:sha1:e633a576ec28f4788f842273fc60adab6999b7dc</id>
<content type='text'>
The growth over 10x the work is 0 or 8 bytes depending on how the
environment copy lands on an 8-byte boundary, so printing it made the
expectation depend on the caller's environment.  Print the finding only
when the limit is exceeded; the reports in build/leaks keep the
numbers.
</content>
</entry>
<entry>
<title>test: fail when zash leaks under LE's heap checker</title>
<updated>2026-11-24T20:25:41Z</updated>
<author>
<name>Sean Kurtz</name>
<email>seankurtz75@gmail.com</email>
</author>
<published>2026-11-24T20:25:41Z</published>
<link rel='alternate' type='text/html' href='https://git.abendless.com/zash.git/commit/?id=e7e469d8f3c48852786468ceb668afe6517c37c2'/>
<id>urn:sha1:e7e469d8f3c48852786468ceb668afe6517c37c2</id>
<content type='text'>
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.
</content>
</entry>
</feed>
