Repository navigation
fix(tests): build and run the udata_close and _Quad tests on macOS - #28944
oneandonlydean merged 1 commit into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Change: Other Merge Risk:
|
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — looks good
The two changed test files appear correct at head 36f09cd317e4f221bc73aa17de94ba6074ac85d1; both were read, and no build or test was run.
What I ran
Read the prepared diff and both changed files, then inspected the close implementation and ownership declarations at the pinned head. Read 2 of 2 reviewed files; files.json lists no excluded files. No build or test command was run.
python3 repo_read.py cat core/libs/prx/libSceIcu/DataMemoryClose.cpp 1 150
python3 repo_read.py cat core/libs/prx/libSceIcu/DataMemoryOwnership.hpp 1 220
python3 repo_read.py search 'GuestLibcInternalQuad' core/libs
Results
| Check | Result | Note |
|---|---|---|
| Changed source review | passed | Both changed files read |
| Build and tests | not run | No non-compiling check was established |
Findings
Blocking
None.
Non-blocking
None.
Sources
The new helper selects msync on Apple platforms and keeps mincore elsewhere; the close implementation uses registered mapping metadata when closing trusted objects. Changed ICU test, close implementation, changed quad test.
Not verified
The reported macOS build and test results were not independently reproduced. Windows and Linux execution was not run.
To get this to a good state
No follow-up is required.
What
Two test files merged on 4 December stopped the macOS test build:
core/libs/prx/libSceIcu/tests/DataMemoryClose.cpp(fix(libSceIcu): validate guest UDataMemory pointer in udata_close_nid_postfix #25432) callsmincorewith anunsigned char*vector; macOS declares the vector aschar*, soguest_icu_recovered_signatures_testsdoes not compile ("no matching function for call to 'mincore'"). fix(libSceIcu): validate guest UDataMemory pointer in udata_close_nid_postfix #25432 also replaced the macOSmsynccheck that 0153abe added for the same test: on macOSmincoresucceeds on an unmapped page, so it cannot show thatudata_closereleased the mapping. The five checks now go through one helper that usesmsync(MS_ASYNC)on macOS andmincoreelsewhere, and requiresENOMEMfor an unmapped page on both, as 0153abe did.core/libs/tests/GuestLibcInternalQuad.cpp(feat(libSceLibcInternal): implement the _Quad and _Quadph families #24583) loops over a braced list without<initializer_list>, which libc++ does not include through the other headers ("cannot deduce type of initializer list because std::initializer_list was not found"). It now includes it, as test(libSceIcu): include initializer_list where the tests build lists #28849 did for the ICU tests.Linux and Windows behaviour of both tests is unchanged.
Tested
Apple M1 Pro, macOS 27.0.1, Apple clang 21.0.0, x86_64 build under Rosetta 2, on main 2c43b61 with the macOS build fixes #11049, #26739, #27739, #27767, #27843 and #27639 merged locally so that main builds.
guest_icu_recovered_signaturesandguest_libc_internal_quadpass 3/3.mincorekept on macOS (only the vector type fixed),guest_icu_recovered_signaturesfails at the first check that the mapping was released, which is why macOS usesmsync.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)🤖 Generated with Claude Code
https://claude.ai/code/session_012LL9hfx4BY6MbUCYMduDAQ
Summary by CodeRabbit