PMM - alloc return 0 if no free pages
This commit is contained in:
parent
776fd87862
commit
9b930ae5d3
@ -13,3 +13,8 @@ TEST(alloc_returns_freed_page)
|
||||
void *a = pmm_alloc();
|
||||
ASSERT_EQ_PTR(a, &mem[0]);
|
||||
}
|
||||
TEST(alloc_returns_0_if_no_free_pages)
|
||||
{
|
||||
void *a = pmm_alloc();
|
||||
ASSERT_EQ_PTR(a, 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user