From eb77ff1e7bdcd7200b682eda8c28eaea27d57247 Mon Sep 17 00:00:00 2001 From: wangchengdong Date: Sun, 9 Nov 2025 19:02:16 +0800 Subject: [PATCH] testing/ostest: align wdog ostest with wdog bugfix https://github.com/apache/nuttx/pull/17293 fixed wd_start bug, and this patch fixed the related ostest accordingly Signed-off-by: Chengdong Wang --- testing/ostest/wdog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/testing/ostest/wdog.c b/testing/ostest/wdog.c index 3243723b241..ca692f27453 100644 --- a/testing/ostest/wdog.c +++ b/testing/ostest/wdog.c @@ -299,6 +299,7 @@ static void wdog_test_run(FAR wdtest_param_t *param) /* Maximum */ delay = CLOCK_MAX >> 2; + delay -= 1; wdtest_assert(wd_start(&test_wdog, delay, wdtest_callback, (wdparm_t)param) == OK);