test(libkernel): use the libkernel public header in the macOS unwind module info test #11718

Merged
MarcZX10 merged 1 commit from upstream-pr/11718 into main 2026-10-27 06:44:39 +00:00
MarcZX10 commented 2026-10-27 05:27:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T05:27:12Z.


What

tests/GuestUnwindModuleInfoMacos.cpp declared sceKernelGetModuleInfoForUnwind itself, while prx/libkernel/include/Api.hpp already declares it. python3 core/libs/tests/test_public_headers.py --audit-only therefore fails on current main (sceKernelGetModuleInfoForUnwind: expected exactly one header declaration; found 2: core/libs/prx/libkernel/include/Api.hpp:382, core/libs/tests/GuestUnwindModuleInfoMacos.cpp:9), which is what the public_headers CTest entry runs. The test now includes the libkernel header, like GuestUnwindModuleInfo.cpp and GuestUnwindModuleInfoFailureLinux.cpp, and drops its own extern "C" declaration. One line added, one removed; no behaviour change.

Tested

Linux x86-64, GCC: test_public_headers.py --audit-only fails on main 1a13c2969f and passes with this change; the test source passes a syntax check with the project's include paths; tools/check_conventions.py --base upstream/main passes. The test itself is macOS-only (if(APPLE)) and was not built or run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5029063670 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11718). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T05:27:12Z. --- ### What `tests/GuestUnwindModuleInfoMacos.cpp` declared `sceKernelGetModuleInfoForUnwind` itself, while `prx/libkernel/include/Api.hpp` already declares it. `python3 core/libs/tests/test_public_headers.py --audit-only` therefore fails on current `main` (`sceKernelGetModuleInfoForUnwind: expected exactly one header declaration; found 2: core/libs/prx/libkernel/include/Api.hpp:382, core/libs/tests/GuestUnwindModuleInfoMacos.cpp:9`), which is what the `public_headers` CTest entry runs. The test now includes the libkernel header, like `GuestUnwindModuleInfo.cpp` and `GuestUnwindModuleInfoFailureLinux.cpp`, and drops its own `extern "C"` declaration. One line added, one removed; no behaviour change. ### Tested Linux x86-64, GCC: `test_public_headers.py --audit-only` fails on `main` `1a13c2969f` and passes with this change; the test source passes a syntax check with the project's include paths; `tools/check_conventions.py --base upstream/main` passes. The test itself is macOS-only (`if(APPLE)`) and was not built or run. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!11718
No description provided.