mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Kernel: Unmapping a non-mapped region with munmap() should be a no-op
Not a regression per se from 0fcb9efd86
since we were crashing before that which is obviously worse.
This commit is contained in:
parent
c9395d7e9a
commit
bccdc08487
2 changed files with 3 additions and 4 deletions
|
@ -10,8 +10,7 @@
|
|||
|
||||
TEST_CASE(munmap_zero_page)
|
||||
{
|
||||
// munmap of the unmapped zero page should always fail.
|
||||
// munmap of the unmapped zero page should always "succeed".
|
||||
auto res = munmap(0x0, 0xF);
|
||||
EXPECT_EQ(res, -1);
|
||||
EXPECT_EQ(errno, EINVAL);
|
||||
EXPECT_EQ(res, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue