From 01815af28e27bda51bef2b0b7274eccda99686e6 Mon Sep 17 00:00:00 2001 From: Watson Zeng Date: Fri, 7 May 2021 15:30:02 +0800 Subject: [PATCH] board: qemu_arc: skip trigger_fault_divide_zero test case qemu arc has limited support for DIV/REM, no DIVZERO exception throw, so we need to skip trigger_fault_divide_zero test case. Signed-off-by: Watson Zeng --- tests/ztest/error_hook/src/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ztest/error_hook/src/main.c b/tests/ztest/error_hook/src/main.c index 2331d273085..f6d8e91fbf3 100644 --- a/tests/ztest/error_hook/src/main.c +++ b/tests/ztest/error_hook/src/main.c @@ -106,13 +106,13 @@ __no_optimization static void trigger_fault_divide_zero(void) /* * While no optimization is enabled, some QEMU such as QEMU cortex a53 - * series and QEMU mps2 series board will not trigger an exception for - * divide zero. They might need to enable the divide zero exception. - * We only skip the QEMU board here, this means this test will still - * apply on the physical board. + * series, QEMU mps2 series and QEMU ARC series boards will not trigger + * an exception for divide zero. They might need to enable the divide + * zero exception. We only skip the QEMU board here, this means this + * test will still apply on the physical board. */ #if (defined(CONFIG_SOC_SERIES_MPS2) && (CONFIG_QEMU_TARGET)) || \ - (CONFIG_BOARD_QEMU_CORTEX_A53) + (CONFIG_BOARD_QEMU_CORTEX_A53) || (CONFIG_SOC_QEMU_ARC) ztest_test_skip(); #endif }