"child resuming" text is printed when dummy_device_pm_ctrl is called. The driver is using the async api, this means that this call will happen only when the worqueue runs what will happen only when this thread blocks waiting on the conditional variable. The last thing is, the dummy driver was putting the parent driver asynchronously consequently the "parent suspending" message would just print after "Device PM sample app complete". Just use the sync API to get these messages printed in the expected order. Fixes #35336 Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
19 lines
527 B
YAML
19 lines
527 B
YAML
sample:
|
|
name: Device Idle Power Management
|
|
tests:
|
|
sample.power.ospm.dev_idle_pm:
|
|
platform_allow: nrf52840dk_nrf52840 nrf52dk_nrf52832
|
|
tags: power
|
|
harness: console
|
|
harness_config:
|
|
type: multi_line
|
|
regex:
|
|
- "Device PM sample app start"
|
|
- "parent resuming\\.\\."
|
|
- "Async wakeup request queued"
|
|
- "child resuming\\.\\."
|
|
- "Dummy device resumed"
|
|
- "child suspending\\.\\."
|
|
- "parent suspending\\.\\."
|
|
- "Device PM sample app complete"
|