mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-29 12:15:39 +00:00
test(ulobjmgr): cover NID aliases _sceUlobjmgrRegisterObject_nid_postfix and _sceUlobjmgrUnregisterObject_nid_postfix
This commit is contained in:
1 parent
3a2b919816
commit
efc22dcc12
1 file changed
+14
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user