Commit 48ba8b40 authored by Stephanos Ioannidis's avatar Stephanos Ioannidis
Browse files

tests: kernel: thread_runtime_stats: Relax precision test for QEMU

This commit relaxes the idle event statistics test precision requirement
for emulated QEMU targets because the cycle counts may be inaccurate when
the host CPU is overloaded (e.g. when running tests with twister) and a
high failure rate is observed for this test in the CI.

Signed-off-by: default avatarStephanos Ioannidis <root@stephanos.io>
(cherry picked from commit 2b2dd01c382c3152a27bdfbdedb71f20d6df638a)
parent 75f737a5
Loading
Loading
Loading
Loading
+2 −0
Changes for tests/kernel/usage/thread_runtime_stats/src/test_thread_runtime_stats.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@

#if defined(CONFIG_RISCV)
#define IDLE_EVENT_STATS_PRECISION 7
#elif defined(CONFIG_QEMU_TARGET)
#define IDLE_EVENT_STATS_PRECISION 3
#else
#define IDLE_EVENT_STATS_PRECISION 1
#endif