zephyr/tests/kernel/semaphore/semaphore
Huifeng Zhang 265080277c tests: kernel: semaphore: fix mutual exclusion test issue
Mutual exclusion test assume that the excution order of two threads like
this:
    mutual_exclusion1 -> mutual_exclusion2 -> mutual_exclusion1 ...

but some times the excution order of two threads would be this:
    mutual_exclusion1 -> mutual_exclusion2 -> mutual_exclusion2 ...

This patch increase the loop cycle, add a variable 'tmp' to store the
value of 'critical_var' before operating it.

Signed-off-by: Huifeng Zhang <Huifeng.Zhang@arm.com>
2022-05-17 11:45:16 +09:00
..
src tests: kernel: semaphore: fix mutual exclusion test issue 2022-05-17 11:45:16 +09:00
CMakeLists.txt cmake: increase minimal required version to 3.20.0 2021-08-20 09:47:34 +02:00
prj.conf tests: smp: cancel CONFIG_MP_NUM_CPUS limit of some testcases 2021-04-27 13:30:24 -04:00
testcase.yaml kernel: semaphore: Add some error case testing for semaphore 2021-01-18 22:10:09 -05:00