test(libkernel): cover null pointer and invalid maxevents in sceKernelWaitEqueue #14680
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14680"
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-01T17:02:53Z.
What
Add negative test coverage in core/libs/tests/GuestEqueueEvents.cpp verifying null event list pointer and invalid maxevents in sceKernelWaitEqueue.
Tested
Ran python tools/check_conventions.py --base upstream/main --head HEAD with 0 findings.
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-01T17:05:21Z.
Review: COMMENTED
Reviewed — no blocking findings
The new cases match the current
sceKernelWaitEqueueerror paths and are registered in the existing equeue test target.What I ran
Reviewed head
491799b852da793002ef163cce06178f7072548dagainst basef2d874c1fdccf781c0fa5d86619bb5dd8894b958; the no-build preview is clean. Environment: Debian 12 x86_64, Python 3.11.2, GCC 12.2.0. No compiler or C++ test binary was run.Results
Unedited check output
Negative control
maxeventsand output pointer are rejectedFindings
Blocking
None found in the changed test.
Non-blocking
The null-event-pointer and zero-count cases already exist in
GuestKernelErrors.cpp; this addition also checks a negative count and null output pointer, so it adds distinct boundary coverage.Sources
sceKernelWaitEqueuevalidation at the reviewed headNot verified
No C++ build or runtime test was performed. Hosted checks were queued at the time inspected.
To get this to a good state
No source change is needed based on this review. Since hosted checks are pending, I am leaving a comment rather than approving; I will recheck the same head when they complete.
Pull request closed