]> code.ossystems Code Review - openembedded-core.git/commit
ltp: modify mmap_24-2 testcase
authorHongzhi.Song <hongzhi.song@windriver.com>
Tue, 16 Oct 2018 02:54:19 +0000 (22:54 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 16 Oct 2018 19:25:37 +0000 (20:25 +0100)
commitff1d158fb15f7a8bc7bca542baac6f9873a58f68
treef506d83a02409ff5dc2642c6292f29cced0704a2
parent557f4618b75b8739a647e46054ab587ae2bbdc25
ltp: modify mmap_24-2 testcase

Mips will return EINVAL instead of ENOMEM as expected
if the range [addr + len) exceeds TASK_SIZE.

Linux kernel code: arch/mips/mm/mmap.c
if (flags & MAP_FIXED) {
    /* Even MAP_FIXED mappings must reside within TASK_SIZE */
    if (TASK_SIZE - len < addr)
       return -EINVAL;

Relax the condition and accept both ENOMEM and EINVAL
as expected outcome.

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/ltp/ltp/0001-open_posix_testsuite-mmap24-2-Relax-condition-a-bit.patch [new file with mode: 0644]
meta/recipes-extended/ltp/ltp_20180515.bb