tests: drivers: wdt_basic_api: Add missing failure indications
Two API calls that are supposed to set up the watchdog are not actually causing the test to fail, only error messages are printed. This patch adds the proper return statements. Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
parent
84898f62a3
commit
ccedcd1ac0
1 changed files with 2 additions and 0 deletions
|
@ -212,11 +212,13 @@ static int test_wdt_no_callback(void)
|
|||
err = wdt_install_timeout(wdt, &m_cfg_wdt0);
|
||||
if (err < 0) {
|
||||
TC_PRINT("Watchdog install error\n");
|
||||
return TC_FAIL;
|
||||
}
|
||||
|
||||
err = wdt_setup(wdt, WDT_OPT_PAUSE_HALTED_BY_DBG);
|
||||
if (err < 0) {
|
||||
TC_PRINT("Watchdog setup error\n");
|
||||
return TC_FAIL;
|
||||
}
|
||||
|
||||
TC_PRINT("Waiting to restart MCU\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue