From 2088f6d35ffd95da83f0b39c5c5d6245d0234ec3 Mon Sep 17 00:00:00 2001 From: Marek Slowinski Date: Mon, 3 Jun 2024 14:32:56 +0200 Subject: [PATCH] ztest: error_hook: Exclude cortex_r8_virtual from divide-by-zero tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Mateusz HoĊ‚enko --- tests/ztest/error_hook/src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ztest/error_hook/src/main.c b/tests/ztest/error_hook/src/main.c index 7b1b63466c2..e4b05fc3eb0 100644 --- a/tests/ztest/error_hook/src/main.c +++ b/tests/ztest/error_hook/src/main.c @@ -121,6 +121,7 @@ __no_optimization static void trigger_fault_divide_zero(void) #if (defined(CONFIG_SOC_SERIES_MPS2) && defined(CONFIG_QEMU_TARGET)) || \ (defined(CONFIG_SOC_SERIES_MPS3) && defined(CONFIG_QEMU_TARGET)) || \ defined(CONFIG_BOARD_QEMU_CORTEX_A53) || defined(CONFIG_SOC_QEMU_ARC) || \ + defined(CONFIG_SOC_CORTEX_R8_VIRTUAL) || \ defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE) || \ defined(CONFIG_BOARD_QEMU_CORTEX_R5) || \ defined(CONFIG_ARMV8_R) || defined(CONFIG_AARCH32_ARMV8_R) || \