zephyr/tests/drivers/watchdog/wdt_basic_api
Gerson Fernando Budke 0c4f1987c6 tests: watchdog: Add missing wdt_disable in API test
The current watchdog tests assume that watchdog can be configured once
it is running. This is a concept that do not work in practice becasue
most of watchdog once configured will be locked. The tests should take
that in consideration before enable another test. The other important
details is that even when a watchdog is running it should be disable in
some controllers to allow reconfigure.

This change was tested with SAM4L watchdog controller #83475 which
allows reconfigure the watchdog once it is enabled. To do the correct
configuration it is necessary execute the wdt_disable() call.

The change will validate if the watchdog can be disabled for those
cases were the controller is not locked and fallback the test on the
contrary.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2025-02-07 07:38:26 +01:00
..
boards tests: drivers: watchdog: Add further support for nRF54L09 PDK. 2025-01-24 19:17:06 +01:00
src tests: watchdog: Add missing wdt_disable in API test 2025-02-07 07:38:26 +01:00
CMakeLists.txt
prj.conf tests: remove CONFIG_ZTEST_NEW_API in all tests 2023-10-20 15:04:29 +02:00
testcase.yaml tests: watchdog: sam: Disnable Atmel SAM4L 2025-01-24 22:08:29 +01:00