tests: pm: device_runtime: Avoid race condition

The test was done with one cpu in mind. In a SMP environment there is
race condition where the semaphor can be given before the other thread
take block waiting for it.

Fixes #40068

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2021-11-08 16:11:16 -08:00 committed by Anas Nashif
commit d7a2f6e8de

View file

@ -2,3 +2,4 @@ CONFIG_ZTEST=y
CONFIG_PM=y
CONFIG_PM_DEVICE=y
CONFIG_PM_DEVICE_RUNTIME=y
CONFIG_MP_NUM_CPUS=1