Skip to content

Commit

Permalink
tests: kernel: thread_runtime_stats: Relax precision test for QEMU
Browse files Browse the repository at this point in the history
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: Stephanos Ioannidis <root@stephanos.io>
(cherry picked from commit 2b2dd01)
  • Loading branch information
stephanosio committed Jun 10, 2024
1 parent 75f737a commit 48ba8b4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48ba8b4

Please sign in to comment.