tests: coredump: Change additional boards to directly call k_panic()

The riscv_virtual, hifive_unleashed, and hifive_unmatched boards all
timeout on this test if they actually perform the null dereference when
they are simulated. Whether the null dereference happens seems to depend
on the compiler used as well as whether optimizations are enabled though.

To make this more consistent, handle these boards in the same way as others
which use Renode simulation and have them directly call k_panic().

Signed-off-by: Jonathon Penix <jpenix@quicinc.com>
This commit is contained in:
Jonathon Penix 2024-03-11 12:39:17 -07:00 committed by Anas Nashif
parent 6c300c9c66
commit a28d5df5c6

View file

@ -29,8 +29,11 @@ void func_3(uint32_t *addr)
{
#if defined(CONFIG_BOARD_M2GL025_MIV) || \
defined(CONFIG_BOARD_HIFIVE1) || \
defined(CONFIG_BOARD_HIFIVE_UNLEASHED) || \
defined(CONFIG_BOARD_HIFIVE_UNMATCHED) || \
defined(CONFIG_BOARD_LONGAN_NANO) || \
defined(CONFIG_BOARD_QEMU_XTENSA) || \
defined(CONFIG_BOARD_RISCV32_VIRTUAL) || \
defined(CONFIG_SOC_FAMILY_INTEL_ADSP)
ARG_UNUSED(addr);
/* Call k_panic() directly so Renode doesn't pause execution.