]> code.ossystems Code Review - openembedded-core.git/commit
ltp: getrlimit03: adjust-a-bit-of-code-to-compatiable-with mips32
authorHongzhi.Song <hongzhi.song@windriver.com>
Wed, 17 Jul 2019 09:50:39 +0000 (02:50 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jul 2019 11:15:51 +0000 (12:15 +0100)
commit6bb6de711631fb2d339c447c6f88c8e06c17b967
treecd3c0751a8c9fd8d40ea3209cd97d4884a80ec61
parent91770338f76ef35f3c4eeac216eb9d2b3188e575
ltp: getrlimit03: adjust-a-bit-of-code-to-compatiable-with mips32

Error info:
getrlimit03.c:104: FAIL: __NR_prlimit64(0) had rlim_cur =
ffffffffffffffff but __NR_getrlimit(0) had rlim_cur = 7fffffff

According to kernel code: [arch/mips/include/uapi/asm/resource.h]
RLIM_INFINITY is set to 0x7fffffffUL instead of ULONG_MAX on mips32.

 /*
 * SuS says limits have to be unsigned.
 * Which makes a ton more sense anyway,
 * but we keep the old value on MIPS32,
 * for compatibility:
 */
 #ifndef __mips64
 # define RLIM_INFINITY      0x7fffffffUL
 #endif

Adding conditional statement about mips to fix this.

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/ltp/ltp/0001-getrlimit03-adjust-a-bit-of-code-to-compatiable-with.patch [new file with mode: 0644]
meta/recipes-extended/ltp/ltp/0001-lapi-Define-TST_ABI-32-64-to-detect-target-type.patch [new file with mode: 0644]
meta/recipes-extended/ltp/ltp_20190115.bb