zephyr/tests/kernel/sched/schedule_api
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
..
src tests/kernel/sched/schedule_api: Fix static analysis volatile warning 2019-08-21 15:53:50 +02:00
CMakeLists.txt
prj.conf
prj_multiq.conf tests: several tweaks for passing tests on qemu 2019-08-08 21:56:45 +02:00
testcase.yaml