zephyr/tests/kernel/sched/schedule_api/src
Andy Ross 28fc46ee09 tests/kernel/sched/schedule_api: Fix static analysis volatile warning
We were testing the value of a volatile variable inside a zassert,
which static analysis doesn't like.  In principle, it might be
volatile because it's an MMIO register or something and the read is a
side effect, and an assertion will be optionally compiled.  (Except
here the value is just regular memory marked volatile for
threadsafety, and zassert will never be elided in a test, but the tool
doesn't know that).

Refactor a little so we always read the variable in a way the tool can
detect is consistent.

Fixes #18446

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2019-08-21 15:53:50 +02:00
..
main.c tests: several tweaks for passing tests on qemu 2019-08-08 21:56:45 +02:00
test_priority_scheduling.c pointer-type args: cast appropriately to be 64-bit compatible 2019-06-12 08:20:52 -07:00
test_sched_is_preempt_thread.c
test_sched_priority.c tests: schedule_api: cover priority checks 2019-07-02 18:44:11 -04:00
test_sched_timeslice_and_lock.c test: kernel: sched: Add a test for nested scheduler lock 2019-08-06 10:19:50 +02:00
test_sched_timeslice_reset.c tests: schedule_api: minor cleanup 2019-07-04 10:04:27 -04:00
test_sched.h test: kernel: sched: Add a test for nested scheduler lock 2019-08-06 10:19:50 +02:00
test_slice_scheduling.c tests/kernel/sched/schedule_api: Fix slice time test for fast ticks 2019-07-02 22:52:29 -04:00
user_api.c tests/kernel/sched/schedule_api: Fix static analysis volatile warning 2019-08-21 15:53:50 +02:00