mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 20:50:44 +00:00
- Replace std::mutex/std::unordered_set + -fexceptions in psm_appnotify.cpp with a Win32 SRWLOCK and HeapAlloc open-addressed token set, keeping -fno-exceptions and reducing both PSM DLLs from ~2.4 MB back to 118 KB. - Tag state (PSM1) and constrained (PSM2) tokens so cross-family unregisters log foreign_token while duplicate, null, or arbitrary invalid tokens log unknown_token. - Fix load_bridge to call FreeLibrary on path mismatch or path-query failure without leaking the module handle or reporting a stale GetLastError(). - Verify exact per-(event, detail) JSONL counts inside test_win32_bridge (both with caller-provided BX_LOG_FILE and a self-managed temp log). - Resolve CHANGELOG.md conflict with origin/main. Signed-off-by: ates <ahmetrizaates@hotmail.com>
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)
- Create
tests/conformance/test_<shim>/CMakeLists.txtandmain.cpp. - Build via
scripts/build-shims.sh(outputsbuild-shims/bin/test_<shim>.exe). - 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