test(libkernel): cover sceKernelGettimezone's null check and the zone it reports #11546
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11546"
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 milescoviello on 2026-10-26T18:17:14Z.
What
GuestFreebsdClocks.cppgets aKernelTimezoneIsUtccase:sceKernelGettimezonerejects a null zone withEFAULT(0x8002000E) and otherwise reports 0 minutes west and no daylight saving, asgettimeofday's zone does.Until now no test called it.
Changed:
core/libs/tests/GuestFreebsdClocks.cpp. Test only, no change to the library.Tested
Linux (Ubuntu 26.04, GCC 15.2), Release:
cmake --build build --target guest_freebsd_clocks_testsandctest -R '^guest_freebsd_clocks$' --repeat until-fail:3pass on this branch, which is currentmainplus the test.tools/check_conventions.py --base upstream/mainpasses.guest_freebsd_clockspasses 3 of 3 at this head (bf15282ecc) and on its basemain88795ed448.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
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-26T18:18:24Z.
Review: APPROVED
The added test matches the implementation: sceKernelGettimezone returns EFAULT for a null pointer and initializes a non-null KernelTimezone to {0, 0}. The change adds one call to the existing clock test target and has no unrelated edits. The author reports the focused guest test passed three consecutive runs on Linux; conventions, eligibility, intake and labels checks pass. I did not rerun the guest target locally.
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T12:32:16Z.
Review: APPROVED
Reviewed
bf15282eccf1b4c046fbd9786824b7c23d385a23— approve. The timezone cases check EFAULT for a null output and both UTC fields in the current host implementation. This tests the implemented contract, not a new measurement of console timezone behavior.Windows/GCC 15.3 Release native validation from pinned sources: head: 1 passed, 0 skipped;
guest_freebsd_clocks; 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.