mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
bccdc08487
Not a regression per se from 0fcb9efd86
since we were crashing before that which is obviously worse.
16 lines
342 B
C++
16 lines
342 B
C++
/*
|
|
* 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);
|
|
}
|