|
36 | 36 | #define WDT_OPT_PAUSE_IN_SLEEP_SUPPORTED BIT(5)
|
37 | 37 | #define WDT_OPT_PAUSE_HALTED_BY_DBG_SUPPORTED BIT(6)
|
38 | 38 | #define WDT_FEED_CAN_STALL BIT(7)
|
| 39 | +#define WDT_WINDOW_MIN_SUPPORTED BIT(8) |
39 | 40 |
|
40 | 41 | /* Common for all targets: */
|
41 | 42 | #define DEFAULT_WINDOW_MAX (500U)
|
@@ -276,12 +277,14 @@ ZTEST(wdt_coverage, test_04w_wdt_install_timeout_with_invalid_window)
|
276 | 277 | /* ----------------- window.min
|
277 | 278 | * Check that window.min can't be different than 0
|
278 | 279 | */
|
279 |
| - m_cfg_wdt0.window.min = 1U; |
280 |
| - ret = wdt_install_timeout(wdt, &m_cfg_wdt0); |
281 |
| - zassert_true(ret == -EINVAL, |
282 |
| - "Calling wdt_install_timeout with window.min = 1 should return -EINVAL (-22), " |
283 |
| - "got unexpected value of %d", |
284 |
| - ret); |
| 280 | + if (!(WDT_TEST_FLAGS & WDT_WINDOW_MIN_SUPPORTED)) { |
| 281 | + m_cfg_wdt0.window.min = 1U; |
| 282 | + ret = wdt_install_timeout(wdt, &m_cfg_wdt0); |
| 283 | + zassert_true(ret == -EINVAL, |
| 284 | + "Calling wdt_install_timeout with window.min = 1 should return -EINVAL (-22), " |
| 285 | + "got unexpected value of %d", |
| 286 | + ret); |
| 287 | + } |
285 | 288 |
|
286 | 289 | /* Set default window.min */
|
287 | 290 | m_cfg_wdt0.window.min = DEFAULT_WINDOW_MIN;
|
|
0 commit comments