zephyr/tests/kernel
Andy Ross 782c121dd3 tests/sched/deadline: Fix precision rollover
The deadline scheduler as of commit ef626571b2 ("kernel/sched:
Optimize deadline comparison") got an optimization that requires that
the the cycle difference of the deadline time of the "first" and
"last" runnable thread never be higher than 2^31.

The test code here was masking off the bottom 31 bits of the generated
deadlines, so it looked OK.  But because the actual setting of the
deadline values takes time too, it was still possible to select values
that would roll over.  The window was VERY small, but the RNG on one
platform (up_squared) hit it.

Shrink the selected deadlines to live in a 30 bit space for safety.

Fixes #31508

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2021-02-03 13:10:33 -05:00
..
common tests: tls: add toolchain filter 2020-12-15 11:22:38 +01:00
condvar/condvar_api tests: kernel: add test for condition variables 2021-01-19 08:55:47 -05:00
context Revert "tests: context: disable if DEMAND_PAGING" 2021-02-02 21:57:43 -05:00
device tests: device: add two more error case testing 2021-01-15 12:18:16 -05:00
early_sleep device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
fatal logging: Revamp menuconfig 2021-01-26 06:15:42 -05:00
fifo tests/queue: Remove fifo/queue "poll" variant tests 2020-11-11 10:59:52 -05:00
fpu_sharing tests: enable and run many tests on RISC-V 2021-01-15 13:06:33 -05:00
gen_isr_table tests: kernel: gen_isr_table: Exclude stm32f103_mini board 2020-12-03 10:54:38 -06:00
interrupt tests: Apply dynamic IRQ API change 2020-09-02 13:48:13 +02:00
lifo tests: fifo: exclude m2gl025_miv 2021-01-23 00:42:13 -05:00
mbox kernel: subsys: lib: drivers: Use k_heap instead of z_mem_pool wrappers 2020-12-07 21:50:14 -05:00
mem_heap test: kheap: add testcase 2021-01-18 23:19:33 -05:00
mem_protect tests: mem_protect: fix failing inheritance test under SMP 2021-02-02 14:00:01 -05:00
mem_slab test: mslab: improve coverage for mslab 2021-01-12 22:16:33 -05:00
mp tests: improve test case descriptions of arch layer interface 2020-10-30 15:55:42 +01:00
msgq/msgq_api tests: msgq: Fix uncheck return value of coverity scan 2021-02-01 20:33:51 -05:00
mutex tests: mutex: remove and refine some error test cases 2021-01-15 12:13:52 -05:00
obj_tracing
pending
pipe kernel: subsys: lib: drivers: Use k_heap instead of z_mem_pool wrappers 2020-12-07 21:50:14 -05:00
poll kernel: subsys: lib: drivers: Use k_heap instead of z_mem_pool wrappers 2020-12-07 21:50:14 -05:00
profiling/profiling_api tests: exclude nrf5340dk_nrf5340_cpunet when CONFIG_PM=y 2021-02-01 15:05:03 -05:00
queue kernel: queue: develop the code coverage 2021-01-18 23:14:12 -05:00
sched tests/sched/deadline: Fix precision rollover 2021-02-03 13:10:33 -05:00
semaphore/semaphore kernel: semaphore: Add some error case testing for semaphore 2021-01-18 22:10:09 -05:00
sleep tests: kernel/sleep: increase maximum threshold for nRF51 2020-09-24 09:52:32 -05:00
smp Tests: Minor change in description and group of SMP test cases 2020-11-03 11:04:50 +01:00
spinlock spinlock: validate: fix the dependency with MP_NUM_CPUS 2021-01-26 08:43:45 -05:00
stack/stack tests: stack: remove and refine some test cases 2021-01-15 11:18:40 -05:00
threads tests: thread: refine the thread abort test case 2021-01-24 14:18:00 -05:00
tickless tests: exclude nrf5340dk_nrf5340_cpunet when CONFIG_PM=y 2021-02-01 15:05:03 -05:00
timer tests: exclude nrf5340dk_nrf5340_cpunet when CONFIG_PM=y 2021-02-01 15:05:03 -05:00
workq test: workqueue: imporve coverage for workqueue 2021-01-04 16:25:40 +01:00
xip tests: xip: remove hack and add qemu_x86_xip 2020-07-30 12:25:37 +02:00