Skip to content

tests: cover native module regressions#229

Draft
cursor[bot] wants to merge 4 commits into
next-gen-5from
cursor/missing-test-coverage-f1cc
Draft

tests: cover native module regressions#229
cursor[bot] wants to merge 4 commits into
next-gen-5from
cursor/missing-test-coverage-f1cc

Conversation

@cursor
Copy link
Copy Markdown

@cursor cursor Bot commented May 28, 2026

Risky behavior now covered

  • Native VM_Call zero-fills missing vmMain argument slots before dispatching DLL/native entrypoints.
  • pk3-backed native library extraction remains gated, basename-only, extension-filtered, CRC-validated, and tried before loose filesystem paths.

Test files added/updated

  • Added tests/scripts/test_native_module_regressions.sh
  • Registered test_native_module_regressions in CMakeLists.txt
  • Updated tests/README.md

Why this reduces regression risk

These paths sit in core VM/filesystem loading and were recently fixed for crash-prone native UI/module bootstrap behavior. The source-guard regression test catches accidental removal of zero-fill argument handling, unsafe pk3 extraction/cache ordering, and bypasses of the direct OS cache write path needed for native libraries.

Validation

  • tests/scripts/test_native_module_regressions.sh
  • cmake -S . -B build-coverage-tests -DBUILD_TESTING=ON -DBUILD_UNIT_TESTS=OFF
  • ctest --test-dir build-coverage-tests -R test_native_module_regressions --output-on-failure
Open in Web View Automation 

cursoragent and others added 4 commits May 28, 2026 10:04
Co-authored-by: Tim Fox <timfox@outlook.com>
Co-authored-by: Tim Fox <timfox@outlook.com>
Co-authored-by: Tim Fox <timfox@outlook.com>
Co-authored-by: Tim Fox <timfox@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant