blob: 6d8af21d79be3fc2fdb905a31a4166041d984d7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
* Copyright (c) 2021, Brian Gianforcaro <bgianf@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibTest/TestCase.h>
#include <errno.h>
#include <sys/mman.h>
TEST_CASE(munmap_zero_page)
{
// munmap of the unmapped zero page should always "succeed".
auto res = munmap(0x0, 0xF);
EXPECT_EQ(res, 0);
}
|