zephyr/tests/kernel
Andy Ross c0630346c8 Revert "tests: tickless_concept: Fix slicing time measurement"
Unfortunately this seems to have introduced spurious failures on (at
least) qemu_x86 and qemu_xtensa.

The change limits the timeslice tolerance to +/- 1ms, which isn't
necessarily correct when the tick rate is less than 1ms (though it
will probably work on deterministic hardware as long as the system is
hitting the target at exactly the right tick), and isn't even
theoretically achievable on emulation environments where timing
granularity is limited by the host scheduling quantum.

What this needs to do is check the deadline is off by at most one
tick, and trust the platform integration to have set the tick rate
appropriately.

(I do worry that the earlier version of the test was trying to set the
limit at half the TICKLESS_IDLE_THRESHOLD, though -- that seems weird,
and hints that maybe the test is trying to do something more
elaborate?)

Fixes #17063.

This reverts commit 62c71dc4d8.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2019-06-26 09:59:47 +02:00
..
arm_irq_vector_table tests: adjust stack size for mps2_an385's coverage test 2019-04-11 17:59:39 -04:00
arm_runtime_nmi license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
boot_page_table license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
common tests: common: cover k_cycle_get_32() syscall 2019-06-25 17:22:52 -07:00
context drivers/interrupt_controller/mvic.c: remove MVIC interrupt controller 2019-06-25 08:06:43 -04:00
critical docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
device tests: device: cover device_get_binding() 2019-06-25 22:44:14 -04:00
early_sleep license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
fatal tests: kernel: fatal: add explicit test case for ARM and FP Sharing mode 2019-06-24 13:26:47 -07:00
fifo pointer-type args: cast appropriately to be 64-bit compatible 2019-06-12 08:20:52 -07:00
fp_sharing arch/x86/Kconfig: remove CONFIG_ISA_IA32 2019-06-14 05:49:13 -04:00
gen_isr_table tests: kernel: Exclude platforms stm32_min_dev_* 2019-04-26 03:34:45 -07:00
interrupt tests: kernel: Exclude platforms stm32_min_dev_* 2019-04-26 03:34:45 -07:00
lifo pointer-type args: cast appropriately to be 64-bit compatible 2019-06-12 08:20:52 -07:00
mbox pointer-type args: cast appropriately to be 64-bit compatible 2019-06-12 08:20:52 -07:00
mem_heap/mheap_api_concept license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
mem_pool memslab/mempool: make tests 64-bit compatible 2019-06-11 09:38:06 -07:00
mem_protect tests: userspace: cover z_object_recycle() 2019-06-25 17:28:19 -07:00
mem_slab memslab/mempool: make tests 64-bit compatible 2019-06-11 09:38:06 -07:00
mp license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
msgq/msgq_api license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
mutex tests: mutex_api: run in user mode 2019-06-18 09:08:01 -04:00
obj_tracing k_stack: make it 64-bit compatible 2019-06-14 05:46:29 -04:00
pending license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
pipe tests: pipe: fix error with optimization disabled 2019-05-02 07:22:37 -04:00
poll tests: poll: expand userspace coverage 2019-06-18 09:08:01 -04:00
profiling/profiling_api tests: adjust stack size for mps2_an385's coverage test 2019-04-11 17:59:39 -04:00
queue tests: queue: test k_queue_alloc_*pend() 2019-06-18 09:08:01 -04:00
sched docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
semaphore docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
sleep tests/kernel/sleep: add tests for k_usleep() API 2019-05-21 23:09:16 -04:00
smp license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
spinlock license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
stack k_stack: make it 64-bit compatible 2019-06-14 05:46:29 -04:00
static_idt arch/x86/Kconfig: remove CONFIG_ISA_IA32 2019-06-14 05:49:13 -04:00
threads tests: thread_apis: exercise some system calls 2019-06-25 22:45:09 -04:00
tickless Revert "tests: tickless_concept: Fix slicing time measurement" 2019-06-26 09:59:47 +02:00
timer docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
workq style: samples/tests: add braces around if/while statements 2019-06-06 15:20:21 +02:00
xip license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00