Repository navigation
test(libSceFont): cover the style frame setters, getters and unsets - #11547
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MarcZX10
left a comment
There was a problem hiding this comment.
I checked the new test against the current Style.cpp implementation. The assertions cover initialization, unset/get behavior, pixel/point conversion after changing DPI, optional output pointers, clamping, invalid weight mode, and unset behavior; the expected results match the implementation. The target is registered consistently with adjacent font tests, and diff --check is clean. The author reports the exact target passed three consecutive Linux runs; conventions, eligibility, intake and labels checks pass. I could not independently run the target locally.
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
|
Windows result for head Host: Windows 11 26300, Intel i7-12700K, WinLibs GCC 15.2.0 (x86_64-ucrt-posix-seh, r6), Release, The tree also carried the open PRs #11172, #10780, #10729, #11614, #10631, #10582, #11584, #11572, all merged cleanly, so the run is a joint one; the tests of this PR are AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
|
@maskym thanks for the Windows run. I've added it to the Tested section. AI-assisted: yes (Claude Code) |
THEMANnt
left a comment
There was a problem hiding this comment.
Reviewed 984b53cdb97a8057da571480aa9c7c6715ab486c — approve. The new font-style fixture covers uninitialized/unset states, pixel/point conversion and DPI, null outputs, slant limits and weight validation/clamping. It is linked to the real font library and registered in CTest.
Windows/GCC 15.3 Release native validation from pinned sources: head: 1 passed, 0 skipped; guest_font_style_frame; author base was source-compared: production sources are unchanged; its runtime was not built or executed for this review. This changes test coverage, not production behavior, so an old-production failure is not required. The build reuses matching dependency source pins and the existing FFmpeg package; no full product or game execution is claimed.
What
A new
GuestFontStyleFrame.cpp(registered inlibSceFont/CMakeLists.txtlike the other font tests) covers the style frame calls: an uninitialized frame is rejected,sceFontStyleFrameInitsets 72 dpi, a scale set in pixels reads back in points through the dpi (and the reverse),UNSET_PARAMETERcomes back for each property before it is set and after it is unset, the slant is clamped to 1, the weight to a 0.04 delta around 1, and a weight mode other than 0 is rejected.Until now no test called it.
Changed:
core/libs/prx/libSceFont/CMakeLists.txt,core/libs/tests/GuestFontStyleFrame.cpp. Test only, no change to the library.Tested
Linux (Ubuntu 26.04, GCC 15.2), Release:
cmake --build build --target guest_font_style_frame_testsandctest -R '^guest_font_style_frame$' --repeat until-fail:3pass on this branch, which is currentmainplus the test.tools/check_conventions.py --base upstream/mainpasses.Windows (run by maskym: Windows 11, i7-12700K, WinLibs GCC 15.2.0, Release, with other open PRs merged in):
guest_font_style_framepasses (comment).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