mirror of
https://github.com/tailix/libkernaux.git
synced 2025-04-07 17:32:45 -04:00
Add more tests for PFA alloc and free
This commit is contained in:
parent
2d8c689ac1
commit
90d2ef08dd
1 changed files with 8 additions and 0 deletions
|
@ -45,5 +45,13 @@ int main()
|
|||
|
||||
assert(pfa.pages[page_addr / KERNAUX_PFA_PAGE_SIZE]);
|
||||
|
||||
for (unsigned int index = 0; index < KERNAUX_PFA_PAGES_COUNT_MAX; ++index) {
|
||||
if (pfa.pages[index]) {
|
||||
assert(KernAux_PFA_alloc_page(&pfa) != 0);
|
||||
}
|
||||
}
|
||||
|
||||
assert(KernAux_PFA_alloc_page(&pfa) == 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue