9 Commits
Author SHA1 Message Date
Dean 9fe71880ad Merge pull request #13978 from LeandroLP23/test/np-common-conditions-event-flags
test(libSceNpCommon): wake condition waiters and mask and cancel event flags
2026-11-03 21:10:48 +13:00
kenny soloandClaude Opus 5.5 30933ef0c1 fix(libSceNpCommon): clear the sceNpGetSdkVersion buffer before writing the version
Firmware 13.42 libSceNpCommon.sprx zeroes the 8-byte buffer without a null check before it writes major.minor, as read from its disassembly in #13684. The test now expects the zero padding, and the debt entry names that source.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-11-01 12:25:25 -05:00
DisasterandClaude Sonnet 5.5 0a520ced91 feat(libSceNpCommon): null-check sceNpGetSystemClockUsec
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-31 19:58:28 +01:00
LeandroLP23andClaude Opus 5.5 864507114d test(libSceNpCommon): stop the wake test when a waiter cannot be created or signalled
A waiter thread holds a pointer to wakeWaiters' stack-local state. Returning
after a failed second creation left the first thread waiting on an object
that went out of scope, and later cases could reuse that storage. Abort the
test process on a failed creation or signal instead, so no worker outlives
the state it uses.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 19:04:13 +01:00
LeandroLP23andClaude Opus 5.5 11e2833b9b test(libSceNpCommon): wake condition waiters and mask and cancel event flags
The NP condition wrappers were only tested without a waiter, and
sceNpCondWait, the SignalAll and SignalTo forms and every sceNpLwCond call
had no test. A new wake case parks real threads in sceNpCondWait and
sceNpLwCondWait and releases them with Signal, SignalAll and SignalTo,
then destroys the conditions. The runtime event flag test now masks bits
with sceNpClearEventFlag and sets a pattern with sceNpCancelEventFlag,
which reports no waiters.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 15:22:15 +01:00
al3w0f205 41503bd2d0 test(libSceNpCommon): cover null pointer validation in sceNpCmpOnlineId and sceNpCmpNpIdInOrder 2026-10-28 20:19:05 -05:00
boykopovar f38d29fd08 refactor(sdk): add canonical headers for remaining libraries 2026-10-24 23:17:42 +03:00
al3w0f205 492583bfe7 test(libSceNpCommon): cover recursive lock in sceNpLwMutexLock 2026-10-23 11:32:21 -05:00
Yossi Yadgar 8753303f4f test(libSceNpCommon): cover the ID utilities, sync wrappers and clock 2026-10-22 08:23:55 +03:00