zephyr/tests/kernel
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
..
common tests/kernel/common: Skip boot delay tests on systems that are too fast 2021-05-07 16:48:58 -04:00
condvar/condvar_api tests: condvar_api: fix permissions to multiple condvar 2021-05-03 17:28:12 -04:00
context tests/kernel/context: Support APIC_TSC_DEADLINE timer 2021-05-07 16:48:58 -04:00
device pm: rename device_set/get_power_state to pm_device_set/get 2021-05-05 18:35:49 -04:00
early_sleep
fatal tests: kernel: fatal: Add no multithreading test 2021-04-29 14:50:35 +02:00
fifo tests/fifo_api: Move k_fifo off stack 2021-03-08 11:14:27 -05:00
fpu_sharing arm64: FPU context switching support 2021-05-03 11:56:50 +02:00
gen_isr_table tests: gen_isr_table: nucleo_g071rb: decr. NUM_IRQS to avoid conflicts 2021-04-26 14:16:03 -04:00
interrupt arm64: FPU context switching support 2021-05-03 11:56:50 +02:00
lifo tests/queue: tests/lifo_usage: Address ADSP/coherence issues 2021-03-08 11:14:27 -05:00
mbox tests: kernel: Add a new testcases for mailbox 2021-04-06 10:18:36 -04:00
mem_heap tests: kernel: mem_heap: Add CONFIG_MULTITHREADING=n configuration 2021-04-29 14:50:35 +02:00
mem_protect tests: mem_protect/mem_map: add testing for k_mem_unmap() 2021-05-07 13:36:22 -04:00
mem_slab tests: kernel: mem_slab: Add no multithreading support 2021-04-29 14:50:35 +02:00
mp tests: kernel: Add missing kernel tag to tests 2021-03-05 14:52:55 -05:00
msgq tests: msgq: add new test case for msgq 2021-05-05 20:52:04 -04:00
mutex tests: smp: cancel CONFIG_MP_NUM_CPUS limit of some testcases 2021-04-27 13:30:24 -04:00
obj_tracing
pending tests: kernel: pending: replace to-be-deprecated k_work API use 2021-04-21 20:42:36 -04:00
pipe tests: pipe: test some error conditions 2021-04-06 10:19:24 -04:00
poll tests/kernel: Add k_poll test for polling on message queues 2021-04-17 07:47:26 -04:00
profiling/profiling_api tests: replace power/power.h with pm/pm.h 2021-05-05 18:35:49 -04:00
queue Test: queue: Add a testcase to test queue 2021-04-06 10:13:49 -04:00
sched test: schedule_api : test some negative test 2021-04-19 16:23:12 -04:00
semaphore tests: semaphore: add k_thread_join to test_sem_take_timeout_isr 2021-05-03 17:28:12 -04:00
sleep
smp tests: smp: add some module and integration test cases 2021-05-05 20:34:28 -04:00
spinlock userspace: rename _is_user_context -> k_is_user_context 2021-04-01 05:34:17 -04:00
stack/stack tests: stack: add a testcase 2021-03-29 16:19:50 -05:00
threads tests: kernel: threads: no-multithreading: Add more platforms 2021-05-07 14:40:27 +02:00
tickless/tickless_concept tests: replace power/power.h with pm/pm.h 2021-05-05 18:35:49 -04:00
timer tests: kernel: timer: timer_api: Extend with CONFIG_MULTITHREADING=n case 2021-04-29 14:50:35 +02:00
workq kernel: fix error in synchronous work cancellation return value 2021-04-27 13:28:45 -04:00
xip tests: kernel: Add missing kernel tag to tests 2021-03-05 14:52:55 -05:00