test(libkernel): audit clock gettime and getres clock id boundaries #17125
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17125"
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 slopgobblercobbler on 2026-11-08T10:46:27Z.
What
Audit
clock_gettimeandclock_getresboundary behaviors and parameter validation across POSIX and PlayStation APIs. VerifyCLOCK_REALTIME(0) andCLOCK_MONOTONIC(4) return valid non-negative seconds and sub-second nanoseconds with monotonic progression, invalid clock IDs (-1, 9999) returnEINVAL(22) /SCE_KERNEL_ERROR_EINVAL, null timespec pointers returnEFAULT(14) /SCE_KERNEL_ERROR_EFAULT, and null resolution pointer toclock_getressucceeds withSCE_OK.Tested
Windows x86_64, AnyPS5 guest unit test suite (
GuestKernelClock). All tests pass.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)