]> git.kaiwu.me - njs.git/commit
Tests: memory pool unit test
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 18 Sep 2026 00:11:36 +0000 (17:11 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Fri, 18 Sep 2026 20:42:16 +0000 (13:42 -0700)
commitb5774ce891c334edd19e3fd17ff4878798f61462
treed27801854a1c10a90ab58aa752950e454c1f63cf
parentd05bcb9bd58897578c2f2a7c384add9d87fbc623
Tests: memory pool unit test

Previously, the memory pool was covered only indirectly by a single
flathsh configuration.

The fix is to add direct coverage for allocation, reuse, alignment, and
mixed allocation sizes across valid pool configurations.  The test uses a
smaller workload in the regular matrix and a full stress workload in the
ASan job.

Library tests are included in the standard test target.  The added ASan
configuration omits debug memory so that the complete test target and the
pool page and cluster paths are exercised.  The library-test dependency
rule is also corrected for the new test executable.
.github/workflows/check-pr.yml
auto/make
auto/sources
src/test/mp_unit_test.c [new file with mode: 0644]