test(libkernel): pin the zone before the kernel timezone check #12747

Merged
oneandonlydean merged 1 commit from upstream-pr/12747 into main 2026-10-29 19:22:41 +00:00
oneandonlydean commented 2026-10-29 07:19:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-29T07:19:26Z.


What

guest_freebsd_clocks aborted on any host whose time zone is not UTC (#12736). Its first check, KernelTimezoneIsUtc, expects sceKernelGettimezone to report 0/0, but that function reports the host zone by design, and the check ran before anything set TZ. CI runners are UTC, so CI never saw it.

The check now sets TZ=UTC0 first, using the file's existing SetTimeZone helper, as the later zone checks in the file already do. The 0/0 assertions are unchanged, and non-UTC offsets stay covered by TimezoneReportsTheStandardOffsetAndDaylight.... Test-only; sceKernelGettimezone is untouched.

Tested

Head 222a178f7f on main edf6804cf5, Linux, Release. ctest -R guest_freebsd_clocks:

host zone before after
Pacific/Auckland (default) Subprocess aborted Passed
TZ=UTC0 Passed Passed
America/New_York (not run) Passed
Asia/Kolkata (not run) Passed

No behaviour change, so no game or GPU run.

Checklist

  • Based on current main; no other open PR fixes this
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • No notes, investigation .md files or images added to the repository
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: #12736
  • Unblocks: none
  • AI-assisted: yes

Thanks @bunbeans2-arch for the report and the analysis.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5063987255 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/12747). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-29T07:19:26Z. --- ### What `guest_freebsd_clocks` aborted on any host whose time zone is not UTC (#12736). Its first check, `KernelTimezoneIsUtc`, expects `sceKernelGettimezone` to report 0/0, but that function reports the host zone by design, and the check ran before anything set `TZ`. CI runners are UTC, so CI never saw it. The check now sets `TZ=UTC0` first, using the file's existing `SetTimeZone` helper, as the later zone checks in the file already do. The 0/0 assertions are unchanged, and non-UTC offsets stay covered by `TimezoneReportsTheStandardOffsetAndDaylight...`. Test-only; `sceKernelGettimezone` is untouched. ### Tested Head `222a178f7f` on main `edf6804cf5`, Linux, Release. `ctest -R guest_freebsd_clocks`: | host zone | before | after | |---|---|---| | Pacific/Auckland (default) | Subprocess aborted | Passed | | `TZ=UTC0` | Passed | Passed | | America/New_York | (not run) | Passed | | Asia/Kolkata | (not run) | Passed | No behaviour change, so no game or GPU run. ### Checklist - [x] Based on current `main`; no other open PR fixes this - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] No notes, investigation `.md` files or images added to the repository - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: #12736 - [x] Unblocks: none - [x] AI-assisted: yes Thanks @bunbeans2-arch for the report and the analysis.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!12747
No description provided.