zephyr/tests/kernel/common/src
Andy Ross 4898e2c613 tests/kernel/common: Skip boot delay tests on systems that are too fast
First, this test is a little suspect.  It's assuming that the value
returned from k_cycle_get_32() represents the time since system
power-on.  While that's an obvious implementation choice and surely
often true, it's definitely not the way we document this API to the
arch layer.  It's perfectly legal for a platform to return any value
as long as the counter is increasing at the correct rate.  Leaving for
now as there's no other way to test CONFIG_BOOT_DELAY, but this will
likely be coming back to confuse us at some point.

Regardless, that convention holds for x86 devices using any of the
existing drivers.  But on an EFI PC using the TSC counter as the clock
source: (1) the counter is running at 1-2 GHz and (2) the time to get
through an EFI BIOS and into Zephyr is routinely 10+ seconds,
especially on reference hardware.  The poor 32 bit API will roll over
several times, and effectively be a random number by the time it
reaches this test.

Just skip this test with fast counter.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2021-05-07 16:48:58 -04:00
..
atomic.c kernel: atomic: consistently use named type for atomic pointer values 2021-04-19 15:22:13 +02:00
bitarray.c tests: kernel/common: add tests for bit array 2021-05-07 13:36:22 -04:00
bitfield.c tests: Big endian support in bitfield test 2020-11-13 14:53:55 -08:00
boot_delay.c tests/kernel/common: Skip boot delay tests on systems that are too fast 2021-05-07 16:48:58 -04:00
byteorder.c tests: kernel: common: Add tests for 24-bit byteorder functions 2020-09-21 11:17:59 +02:00
clock.c test: context: Refine descriptions for some test cases 2020-11-17 22:11:45 -05:00
errno.c userspace: rename _is_user_context -> k_is_user_context 2021-04-01 05:34:17 -04:00
irq_offload.c tests: Apply IRQ offload API change 2020-09-02 13:48:13 +02:00
main.c tests: kernel/common: add tests for bit array 2021-05-07 13:36:22 -04:00
multilib.c
printk.c tests/kernel/common: Skip the printk test when not applicable 2021-02-03 20:56:14 -05:00
timeout_order.c tests: kernel: remove debug message for LLVM 2021-04-22 07:42:58 -04:00