Files
betterxen/tests/conformance
ates 925311e852 Merge main and address PR #427 review findings
- Wire physical-page accounting into xmem.cpp via shims/xmem/xmem_accounting.h so XMemGetWorkingSetStatistics and bx_xmem_get_internal_stats report allocated_physical_bytes and enforce one shared title memory budget across heap, virtual, and physical allocations.
- Require exact full-span coverage in unmap_span; empty or partially mapped spans now fail with ERROR_INVALID_PARAMETER without disturbing existing views.
- Document Win32 AWE-modeled synthetic signatures (AllocateUserPhysicalPages / FreeUserPhysicalPages in memoryapi.h) and intra-span duplicate-tag aliasing vs duplicate-tag free rejection.
- Expand test_xmem_physical to cover working-set stats, shared cap enforcement, invalid flags, intra-span duplicate-tag aliasing, duplicate and stale free non-mutation, and partial/empty unmap rejection.
- Resolve CHANGELOG.md conflict with origin/main.

Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 18:30:37 +03:00
..

Synthetic PE32+ Conformance Tests (tests/conformance/)

Every directory matching test_*/CMakeLists.txt is auto-discovered by tests/conformance/CMakeLists.txt when running scripts/build-shims.sh.

Adding a New Test (Zero Shared-File Edits)

  1. Create tests/conformance/test_<shim>/CMakeLists.txt and main.cpp.
  2. Build via scripts/build-shims.sh (outputs build-shims/bin/test_<shim>.exe).
  3. Run live under CrossOver + Rosetta 2:
    target/debug/bx-cli run --prefix /tmp/bx-test --shims build-shims/bin --log /tmp/bx-test.jsonl --exe build-shims/bin/test_<shim>.exe