zephyr/tests/kernel/sched
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
..
deadline pointer-type args: cast appropriately to be 64-bit compatible 2019-06-12 08:20:52 -07:00
preempt docs: fix misspelling across the tree 2019-06-19 15:34:13 -05:00
schedule_api tests/kernel/sched/schedule_api: Fix static analysis volatile warning 2019-08-21 15:53:50 +02:00