]> code.ossystems Code Review - openembedded-core.git/commit
ltp: Use a legal bad address for mips in setrlimit05.c
authorHongzhi.Song <hongzhi.song@windriver.com>
Tue, 20 Nov 2018 09:42:51 +0000 (01:42 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 21 Nov 2018 11:48:18 +0000 (11:48 +0000)
commite45948d4be14c14eff0a5c8c8597a7523f2edff1
treec91bba3a43b9142ad1a9a4af3e07bd65a92ea4dc
parent6ad99f3eabe359d5be98d63d4781063b63c83eea
ltp: Use a legal bad address for mips in setrlimit05.c

This testcase fails on mips32. The process is killed by SIGBUS which
is not as expect.

This is because:
((void *)-1) is not a legal bad address which causes the process
killed by SIGBUG on mips.

'tst_get_bad_addr()' returns an address that should works on mips
and other arches.

Signed-off-by: Hongzhi.Song <hongzhi.song@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/ltp/ltp/0001-setrlimit05-Use-another-method-to-get-bad-address.patch [new file with mode: 0644]
meta/recipes-extended/ltp/ltp_20180926.bb