Skip to content

Commit 2088f6d

Browse files
mars-lowaescolar
authored andcommitted
ztest: error_hook: Exclude cortex_r8_virtual from divide-by-zero tests
Cortex-R8 emulated in Renode doesn't trigger exceptions on divide by zero. We only skip the virtual SoC, so the test will still apply on a physical target. Signed-off-by: Marek Slowinski <[email protected]> Signed-off-by: Mateusz Hołenko <[email protected]>
1 parent 9b9d39d commit 2088f6d

File tree

1 file changed

+1
-0
lines changed
  • tests/ztest/error_hook/src

1 file changed

+1
-0
lines changed

tests/ztest/error_hook/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ __no_optimization static void trigger_fault_divide_zero(void)
121121
#if (defined(CONFIG_SOC_SERIES_MPS2) && defined(CONFIG_QEMU_TARGET)) || \
122122
(defined(CONFIG_SOC_SERIES_MPS3) && defined(CONFIG_QEMU_TARGET)) || \
123123
defined(CONFIG_BOARD_QEMU_CORTEX_A53) || defined(CONFIG_SOC_QEMU_ARC) || \
124+
defined(CONFIG_SOC_CORTEX_R8_VIRTUAL) || \
124125
defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE) || \
125126
defined(CONFIG_BOARD_QEMU_CORTEX_R5) || \
126127
defined(CONFIG_ARMV8_R) || defined(CONFIG_AARCH32_ARMV8_R) || \

0 commit comments

Comments
 (0)