Skip to content

Commit f7e7f0f

Browse files
overheatgalak
authored andcommitted
tests: watchdog: Debug for boards enabled TEST_WDT_CALLBACK_2
The original code cannot go to the next step on those boards enabled TEST_WDT_CALLBACK_2 macro, because of the flow control issue. So the test function cannot finish, and the board keeps restart. As a result, failure on the test. Fixes #13468 Signed-off-by: Aaron Tsui <[email protected]>
1 parent ebfd853 commit f7e7f0f

File tree

1 file changed

+1
-1
lines changed
  • tests/drivers/watchdog/wdt_basic_api/src

1 file changed

+1
-1
lines changed

tests/drivers/watchdog/wdt_basic_api/src/test_wdt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ static int test_wdt_bad_window_max(void)
300300

301301
void test_wdt(void)
302302
{
303-
if (m_testcase_index != 1) {
303+
if ((m_testcase_index != 1) && (m_testcase_index != 2)) {
304304
zassert_true(test_wdt_no_callback() == TC_PASS, NULL);
305305
}
306306
if (m_testcase_index == 1) {

0 commit comments

Comments
 (0)