Tests: guest_freebsd_clocks aborts where the host zone is not UTC #12736
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 bunbeans2-arch on 2026-10-29T06:04:13Z.
What happens
guest_freebsd_clocksaborts (0xc0000409) on any machine whose zone is not UTC:KernelTimezoneIsUtc(core/libs/tests/GuestFreebsdClocks.cpp, added inbf15282ec) requiressceKernelGettimezoneto report 0 and 0 before any test setsTZ.Title, test or build step
guest_freebsd_clocksAnyPS5 commit
main52c09d5(2026-10-29); the test file is unchanged on2960e9a6e.System
Windows 11 Pro 10.0.22631, Windows zone Eastern Standard Time, MSYS2 UCRT64 GCC 16.1.0, Release,
BUILD_TESTING=ON.Steps to reproduce
The first two abort in 0.1 s; the third passes.
Log
With
Requiretemporarily printing itsstd::source_location, the failing check is line 328,sceKernelGettimezone(&zone) == SCE_OK && zone.tz_minuteswest == 0 && zone.tz_dsttime == 0, in 3 of 3 runs.What was checked
sceKernelGettimezonereports the host zone by design: the libkernel debt entry records it, and a PS5 set to US Eastern returned -300 and 60. So the implementation is right and the test assumes a UTC host, which the CI runners are.TimezoneReportsTheStandardOffsetAndDaylightAmountin the same file setsTZbefore each check and passes here.SetTimeZone("UTC0");at the start ofKernelTimezoneIsUtc). With it the test passes with the Windows zone (Eastern),TZ=EST5EDT,TZ=UTC0andTZ=IST-5:30. I will open it as a pull request once my open one, #12731, is merged, as the open pull request limit for new authors requires./etc/localtimeis the default zone and the same assumption applies.AI-assisted: yes (Claude Code)