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