test(libkernel): assert memory type propagation from batch commit entry

This commit is contained in:
abhinav29102005 2026-10-12 11:34:03 +05:30
parent 4f947dab16
commit 99a39859db
1 changed files with 2 additions and 0 deletions

View File

@ -459,6 +459,8 @@ static void CheckMtypeprotect() {
commitEntry.commit.type = 7;
processed = -1;
Require(sceKernelMemoryPoolBatch(&commitEntry, 1, &processed, 0) == 0 && processed == 1);
check(1, 3, 1);
check(2, 7, 1);
Require(sceKernelMtypeprotect(bytes, page * 3, 2, 3) == 0);
VirtualQueryInfo whole{};
Require(sceKernelVirtualQuery(bytes, 0, &whole, sizeof(whole)) == 0);