zephyr/tests
Andy Ross 49398cfbf6 tests/kernel/sched/schedule_api: Relax preemption order constraints
This test was testing for an undocumented and somewhat hyperspecific
behavior: when a process reaches a reschedule point and yields to a
higher priority thread, and there is another equal priority thread
active, which thread gets to run when the higher priority thread
finishes its work?  The original scheduler (because it leaves the
older thread in place in the list) implements the preemption like an
interrupt and returns to the original thread, despite the fact that
this then resets is time slice quantum unfairly.  In SMP mode, where
the current threads cannot live in the active list, the thread gets
added back to the end of the queue and the other thread runs.  In
effect, in UP mode "yield" and "reschedule" mean very slightly
different things where in SMP they act the same.

We don't document either behavior, as it happens.  Relax the test
constraints by adding a single deliberate k_yield() to unify behavior.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2019-09-26 16:54:06 -04:00
..
application_development tests: cxx: Enable exceptions 2019-09-19 09:26:42 -05:00
arch tests/arch: arm_thread_swap: Increase no_optim case flash requirement 2019-09-26 23:06:38 +03:00
benchmarks boards: arm: Add support for NXP FRDM-K22F board 2019-09-25 02:18:38 -07:00
bluetooth Bluetooth: tester: Adapt to BTP Get Attribute Value API change 2019-09-25 17:36:05 +02:00
boards tests: boards: board_shell: Activate CAN shell 2019-07-29 10:27:54 +03:00
booting/stub
cmsis_rtos_v1 tests/cmsis_rtos_v1: relax timing check a bit 2019-08-02 12:47:41 +02:00
cmsis_rtos_v2 tests: cmsis_v2: Put/Get msg in queue instead of u32_t 2019-09-19 09:33:03 -05:00
crypto kernel: lib: Add convert functions for hex strings and binary arrays 2019-07-16 12:44:18 +02:00
drivers tests: pwm: Fix missing unit test 2019-09-26 16:52:58 -04:00
kernel tests/kernel/sched/schedule_api: Relax preemption order constraints 2019-09-26 16:54:06 -04:00
lib Bluetooth: Host: Remove printk dependency from settings 2019-09-25 17:36:39 +02:00
misc tests: misc: util: Add test for Z_MAX and Z_MIN 2019-09-25 17:41:03 +02:00
net tests: net: hostname: Add tests for hostname set/get 2019-09-20 11:42:51 +03:00
posix tests/posix/common: restructure to eliminate casts 2019-09-15 11:33:47 +08:00
shell shell: add test for new built-in command 2019-05-24 11:04:42 +02:00
subsys tests: subsys: jwt: Remove unneeded CONFIG_PTHREAD_IPC option 2019-09-25 20:56:29 -07:00
unit tests: crc: convert to regular test case 2019-07-06 00:31:04 +02:00
ztest subsys/testsuite: make tc_util overridable 2019-09-17 07:11:33 +08:00