1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Expect :mmap__bad_arguments to fail

Some recent changes to vm related to mmap(2) have broken the prot checks that
would result with an EINVAL with this case

I suspect r313352 is the root-cause the issue

PR:		216976
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2017-02-10 19:31:09 +00:00
parent 807a7231f2
commit 28e5919804
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=313565

View File

@ -134,6 +134,8 @@ ATF_TC_BODY(mmap__bad_arguments, tc)
checked_mmap(PROT_READ, MAP_SHARED, devstatfd, 0,
"simple /dev/devstat shared");
atf_tc_expect_fail("extra PROT flags check fails due to recent mmap(2) changes; bug # 216976");
/* Extra PROT flags. */
checked_mmap(PROT_READ | PROT_WRITE | 0x100000, MAP_ANON, -1, EINVAL,
"MAP_ANON with extra PROT flags");