zephyr/tests
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
..
application_development/gen_inc_file tests: move cpp tests to subsys/cpp 2021-04-29 09:00:40 -04:00
arch tests: arm_interrupt: remove redundant test case part 2021-06-24 09:30:35 +02:00
benchmarks boards: minnowboard: remove untested and old board 2021-06-01 14:06:56 -05:00
bluetooth Bluetooth: Audio: AICS client add function to get conn pointer 2021-06-24 11:31:04 -04:00
boards tests: intel_s1000_crb: remove unused and wrong implemented callbacks 2021-04-20 15:06:35 +02:00
crypto tests: crypto: Add a unnormal testing condition 2021-03-09 05:10:54 -05:00
drivers tests: build_all: sensor: Add a few missing sensors 2021-06-24 11:03:56 -05:00
kernel tests: mem_protest: workaround aggressive optimization 2021-06-28 09:15:43 -04:00
lib tests: cleanup cbprintf tag usage 2021-06-24 12:38:57 -05:00
misc/test_build tests: test_build: Exclude lpcxpresso55s69_ns from debug builds 2021-05-21 20:12:23 -05:00
net tests: net: eth: Add TXTIME tests 2021-06-14 07:00:10 -04:00
posix tests: posix: common: clock: exclude ehl_crb from test posix realtime 2021-06-02 08:49:45 -05:00
subsys tests/subsys/dfu: add testsuite for multi-image support 2021-06-17 12:41:17 +02:00
unit tests: cleanup cbprintf tag usage 2021-06-24 12:38:57 -05:00
ztest tests: error_hook skipping div-by-0 test on cortex M0 M0+ 2021-05-28 11:46:09 -05:00