#16654: MMAP: 24-2 test fails with 'Invalid Argument' instead of ENOMEM
--------------------------+--------------------------
Reporter: cocobean | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: System/POSIX | Version: R1/beta2
Keywords: mmap, posix | Blocked By:
Blocking: | Platform: All
--------------------------+--------------------------
Open POSIX Test Suite 1.5.2 fails MMAP 24-2 test with 'Invalid Argument'
result instead of expected ENOMEM result. The test is failing on Haiku
R1B2 x86 (+123).
{{{
* The mmap( ) function shall fail if:
* [ENOMEM] MAP_FIXED was specified,
* and the range [addr,addr+len) exceeds that allowed
* for the address space of a process; or, if MAP_FIXED was not specified
and
* there is insufficient room in the address space to effect the mapping.
*
* Test Step:
* 1. Map a shared memory object, with size exceeding the value get from
* rlim_cur of resource RLIMIT_AS, setting MAP_FIXED;
* 3. Should get ENOMEM.
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/16654>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.