test(libkernel): use the libkernel public header in the macOS unwind module info test #11718
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11718"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T05:27:12Z.
What
tests/GuestUnwindModuleInfoMacos.cppdeclaredsceKernelGetModuleInfoForUnwinditself, whileprx/libkernel/include/Api.hppalready declares it.python3 core/libs/tests/test_public_headers.py --audit-onlytherefore fails on currentmain(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 thepublic_headersCTest entry runs. The test now includes the libkernel header, likeGuestUnwindModuleInfo.cppandGuestUnwindModuleInfoFailureLinux.cpp, and drops its ownextern "C"declaration. One line added, one removed; no behaviour change.Tested
Linux x86-64, GCC:
test_public_headers.py --audit-onlyfails onmain1a13c2969fand passes with this change; the test source passes a syntax check with the project's include paths;tools/check_conventions.py --base upstream/mainpasses. The test itself is macOS-only (if(APPLE)) and was not built or run.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)