Skip to content

Commit

Permalink
tests: watchdog: Debug for boards enabled TEST_WDT_CALLBACK_2
Browse files Browse the repository at this point in the history
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 <aaron.tsui@outlook.com>
  • Loading branch information
overheat authored and galak committed Mar 28, 2019
1 parent ebfd853 commit f7e7f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/drivers/watchdog/wdt_basic_api/src/test_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ static int test_wdt_bad_window_max(void)

void test_wdt(void)
{
if (m_testcase_index != 1) {
if ((m_testcase_index != 1) && (m_testcase_index != 2)) {
zassert_true(test_wdt_no_callback() == TC_PASS, NULL);
}
if (m_testcase_index == 1) {
Expand Down

0 comments on commit f7e7f0f

Please sign in to comment.