Skip to content

Commit bd10572

Browse files
wangchdoanchao
authored andcommitted
testing/ostest: align wdog ostest with wdog bugfix
apache/nuttx#17293 fixed wd_start bug, and this patch fixed the related ostest accordingly Signed-off-by: Chengdong Wang <wangchengdong@lixiang.com>
1 parent 761f25c commit bd10572

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

testing/ostest/wdog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ static void wdog_test_run(FAR wdtest_param_t *param)
299299
/* Maximum */
300300

301301
delay = CLOCK_MAX >> 2;
302+
delay -= 1;
302303
wdtest_assert(wd_start(&test_wdog, delay,
303304
wdtest_callback, (wdparm_t)param) == OK);
304305

0 commit comments

Comments
 (0)