zephyr/tests/kernel
Watson Zeng e451bf44fe tests: mem_protest: workaround aggressive optimization
We have some static variables var, zeroed_var and bss_var
in mem_partition.c and we only assert the value of them in
the same file, so the compiler may pre-calculate it in compile
stage, it's fine usually.
But for variable zeroed_var (= 20420), we force to put it in bss
section in link stage, the value will change in bss clean stage, so
we will get a wrong result.
Let's add volatile for these variables to disable pre-calculation.

Signed-off-by: Watson Zeng <zhiwei@synopsys.com>
2021-06-28 09:15:43 -04:00
..
common tests: kernel/common: incorrect use of k_poll in timeout order 2021-05-25 07:34:59 -05:00
condvar/condvar_api tests: condvar: fix one testcase failure on qemu_cortex_a53_smp 2021-05-08 17:08:48 -04:00
context tests/kernel/context: Support APIC_TSC_DEADLINE timer 2021-05-07 16:48:58 -04:00
device pm: device: Align state names with system states 2021-05-07 18:35:12 -04:00
early_sleep
fatal tests: add fpu tag the tests which enable FPU and FPU_SHARING options 2021-06-22 08:45:41 -04:00
fifo tests/fifo_api: Move k_fifo off stack 2021-03-08 11:14:27 -05:00
fpu_sharing tests: add fpu tag the tests which enable FPU and FPU_SHARING options 2021-06-22 08:45:41 -04:00
gen_isr_table tests: kernel: gen_isr_table: Add workaround for npcx9 series. 2021-06-08 00:40:14 -04:00
interrupt arm64: mitigate FPU-in-exception usage side effects 2021-05-21 04:52:44 -05:00
lifo tests/queue: tests/lifo_usage: Address ADSP/coherence issues 2021-03-08 11:14:27 -05:00
mbox kernel: remove object tracing 2021-05-07 22:10:21 -04:00
mem_heap tests/kernel/mem_heap: Add minimum-size heap test 2021-05-20 17:52:21 -04:00
mem_protect tests: mem_protest: workaround aggressive optimization 2021-06-28 09:15:43 -04:00
mem_slab tests: kernel: mem_slab: Add no multithreading support 2021-04-29 14:50:35 +02:00
mp tests: kernel: Add missing kernel tag to tests 2021-03-05 14:52:55 -05:00
msgq tests: msgq_usage: ensure all services started before client query 2021-05-13 22:03:55 -04:00
mutex tests: smp: cancel CONFIG_MP_NUM_CPUS limit of some testcases 2021-04-27 13:30:24 -04:00
pending tests: kernel: pending: replace to-be-deprecated k_work API use 2021-04-21 20:42:36 -04:00
pipe tests: pipe: test some error conditions 2021-04-06 10:19:24 -04:00
poll tests/kernel: Add k_poll test for polling on message queues 2021-04-17 07:47:26 -04:00
profiling/profiling_api tests: replace power/power.h with pm/pm.h 2021-05-05 18:35:49 -04:00
queue Test: queue: Add a testcase to test queue 2021-04-06 10:13:49 -04:00
sched test: schedule_api : test some negative test 2021-04-19 16:23:12 -04:00
semaphore tests: kernel: fix two semaphroe testcases failed on ADSP 2021-05-14 16:41:21 -04:00
sleep
smp tests/kernel/smp: Remove release_global_lock_irq case 2021-05-17 15:27:37 -04:00
spinlock userspace: rename _is_user_context -> k_is_user_context 2021-04-01 05:34:17 -04:00
stack/stack tests: stack: add a testcase 2021-03-29 16:19:50 -05:00
threads test: thread : test run k_thread_resume on unsuspend thread 2021-05-07 18:21:23 -04:00
tickless/tickless_concept boards: qemu_x86_coverage: remove board testing coverage 2021-06-01 14:06:56 -05:00
timer boards: qemu_x86_coverage: remove board testing coverage 2021-06-01 14:06:56 -05:00
workq kernel: remove dead workq code 2021-05-18 11:21:27 -05:00
xip tests: kernel: Add missing kernel tag to tests 2021-03-05 14:52:55 -05:00