Skip to content

Commit 85afd0f

Browse files
ioannisgnashif
authored andcommitted
boards: arm: qemu_cortex_m0: filter out a couple of failing tests
We filter out the following kernel tests - tickless_concept - timer_api from the set of tests running on QEMU Cortex-M0 platform, as the tests consistently fail on QEMU. In addition, we add a workaround for kernel/interrupt test, so it can successfully execute on QEMU Cortex-M0. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 9145264 commit 85afd0f

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

tests/kernel/interrupt/src/nested_irq.c

+12
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,19 @@ void isr0(void *param)
7474
{
7575
ARG_UNUSED(param);
7676
printk("%s running !!\n", __func__);
77+
#if defined(CONFIG_BOARD_QEMU_CORTEX_M0)
78+
/* QEMU Cortex-M0 timer emulation appears to not capturing the
79+
* current time accurately, resulting in erroneous busy wait
80+
* implementation.
81+
*
82+
* Work-around:
83+
* Increase busy-loop duration to ensure the timer interrupt will fire
84+
* during the busy loop waiting.
85+
*/
86+
k_busy_wait(MS_TO_US(1000));
87+
#else
7788
k_busy_wait(MS_TO_US(10));
89+
#endif
7890
printk("%s execution completed !!\n", __func__);
7991
zassert_equal(new_val, old_val, "Nested interrupt is not working\n");
8092
}

tests/kernel/tickless/tickless_concept/testcase.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ tests:
33
arch_exclude: riscv32 nios2
44
# FIXME: This test fails sporadically on all QEMU platforms, but fails
55
# consistently when coverage is enabled. Disable until 14173 is fixed.
6-
platform_exclude: qemu_x86_coverage
6+
# This test fails on qemu_cortex_m0 consistently. Disable until the
7+
# root cause is identified.
8+
platform_exclude: qemu_x86_coverage qemu_cortex_m0
79
tags: kernel

tests/kernel/timer/timer_api/testcase.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
tests:
22
kernel.timer:
33
tags: kernel userspace
4-
platform_exclude: qemu_x86_coverage
4+
platform_exclude: qemu_x86_coverage qemu_cortex_m0
55
kernel.timer.tickless:
66
build_only: true
77
extra_args: CONF_FILE="prj_tickless.conf"

0 commit comments

Comments
 (0)