Skip to content

Commit b2e21d5

Browse files
asmellbykartben
authored andcommitted
tests: drivers: watchdog: Support devices with limited timeouts
Support running the error case test on devices with a limited number of timeouts. Signed-off-by: Aksel Skauge Mellbye <[email protected]>
1 parent bbd4461 commit b2e21d5

File tree

1 file changed

+5
-0
lines changed
  • tests/drivers/watchdog/wdt_error_cases/src

1 file changed

+5
-0
lines changed

tests/drivers/watchdog/wdt_error_cases/src/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@ ZTEST(wdt_coverage, test_04wm_wdt_install_timeout_with_multiple_timeout_values)
326326
ztest_test_skip();
327327
}
328328

329+
if (MAX_INSTALLABLE_TIMEOUTS < 2) {
330+
/* Skip this test because two timeouts aren't supported */
331+
ztest_test_skip();
332+
}
333+
329334
m_cfg_wdt0.callback = NULL;
330335
m_cfg_wdt0.flags = DEFAULT_FLAGS;
331336
m_cfg_wdt0.window.max = DEFAULT_WINDOW_MAX;

0 commit comments

Comments
 (0)