Skip to content

Commit d044dfe

Browse files
manuarguecarlescufi
authored andcommitted
tests: error_hook: skip test_catch_fatal_error for Armv8-R
Skip `test_catch_fatal_error` test case for Armv8-R because divide by zero trapping is not supported on this architecture. Fixes #63268 Signed-off-by: Manuel Argüelles <[email protected]>
1 parent 1fc16e6 commit d044dfe

File tree

1 file changed

+4
-2
lines changed
  • tests/ztest/error_hook/src

1 file changed

+4
-2
lines changed

tests/ztest/error_hook/src/main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,16 @@ __no_optimization static void trigger_fault_divide_zero(void)
115115
* For the Cortex-M0, M0+, M23 (CONFIG_ARMV6_M_ARMV8_M_BASELINE)
116116
* which does not include a divide instruction, the test is skipped,
117117
* and there will be no hardware exception for that.
118+
* For ARMv8-R, divide by zero trapping is not supported in hardware.
118119
*/
119120
#if (defined(CONFIG_SOC_SERIES_MPS2) && defined(CONFIG_QEMU_TARGET)) || \
120121
(defined(CONFIG_SOC_SERIES_MPS3) && defined(CONFIG_QEMU_TARGET)) || \
121122
defined(CONFIG_BOARD_QEMU_CORTEX_A53) || defined(CONFIG_SOC_QEMU_ARC) || \
122123
defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE) || \
123124
defined(CONFIG_BOARD_QEMU_CORTEX_R5) || \
124-
defined(CONFIG_BOARD_FVP_BASER_AEMV8R) || defined(CONFIG_BOARD_FVP_BASE_REVC_2XAEMV8A) || \
125-
defined(CONFIG_BOARD_FVP_BASER_AEMV8R_AARCH32) || defined(CONFIG_SOC_NSIM_EM11D)
125+
defined(CONFIG_ARMV8_R) || defined(CONFIG_AARCH32_ARMV8_R) || \
126+
defined(CONFIG_BOARD_FVP_BASE_REVC_2XAEMV8A) || \
127+
defined(CONFIG_SOC_NSIM_EM11D)
126128
ztest_test_skip();
127129
#endif
128130
}

0 commit comments

Comments
 (0)