Opened 4 years ago

Closed 19 months ago

#16654 closed bug (fixed)

MMAP: 24-2 test fails with 'Invalid Argument' instead of ENOMEM

Reported by: cocobean Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/POSIX Version: R1/beta2
Keywords: mmap, posix Cc:
Blocked By: Blocking:
Platform: All

Description

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.

Change History (2)

comment:1 by cocobean, 19 months ago

Resolved (PASSED). Retested on R1B4 hrev56916 x64.

Please close this ticket.

comment:2 by waddlesplash, 19 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.