test(ulobjmgr): cover NID aliases _sceUlobjmgrRegisterObject_nid_postfix and _sceUlobjmgrUnregisterObject_nid_postfix

This commit is contained in:
al3w0f205 committed 2026-10-28 20:17:10 -05:00
1 parent 3a2b919816
commit efc22dcc12
1 file changed
+14
+14
View File
@@ -25,4 +25,18 @@ int main() {
Require(_sceUlobjmgrUnregisterObject(0x3fff) == 0);
Require(_sceUlobjmgrUnregisterObject(0x4000) == einval);
Require(_sceUlobjmgrUnregisterObject(0xffffffffu) == einval);
std::uint32_t nidId = 0xffffffffu;
Require(_sceUlobjmgrRegisterObject_nid_postfix(0, 1, &nidId) == einval);
Require(nidId == 0xffffffffu);
Require(_sceUlobjmgrRegisterObject_nid_postfix(0x1000, 0, &nidId) == einval);
Require(nidId == 0xffffffffu);
Require(_sceUlobjmgrRegisterObject_nid_postfix(0x1000, 1, nullptr) == einval);
Require(_sceUlobjmgrRegisterObject_nid_postfix(0x1000, -1, &nidId) == 0);
Require(nidId == 0);
Require(_sceUlobjmgrUnregisterObject_nid_postfix(nidId) == 0);
Require(_sceUlobjmgrUnregisterObject_nid_postfix(0x3fff) == 0);
Require(_sceUlobjmgrUnregisterObject_nid_postfix(0x4000) == einval);
Require(_sceUlobjmgrUnregisterObject_nid_postfix(0xffffffffu) == einval);
}