Skip to content

drivertest/watchdog: tighten reset cause and timing validation - #3983

Merged
xiaoxiang781216 merged 2 commits into
apache:masterfrom
bigcat-2026:port/watchdog-test-validation
Nov 21, 2026
Merged

xiaoxiang781216 merged 2 commits into
apache:masterfrom
bigcat-2026:port/watchdog-test-validation

Conversation

@bigcat-2026

Copy link
Copy Markdown
Contributor

Summary

Tighten the watchdog driver test validation, ported from
open-vela/nuttx-apps#142.

  • Use a chip-specific expected reset cause: the ESP32-S3 reports a
    BOARDIOC_RESETCAUSE_CORE_MWDT reset, while other platforms report
    BOARDIOC_RESETCAUSE_SYS_RWDT.
  • Validate that the reported timeleft is not greater than the configured
    timeout.
  • Compare the remaining-time delta against the measured ping delay instead
    of the configured ping delay.

Change

  • testing/drivers/drivertest/drivertest_watchdog.c

Use a chip-specific expected reset cause (ESP32-S3 reports a core MWDT
reset instead of the system RWDT reset), and validate the reported
timeleft against the measured ping delay.

Ported from open-vela/nuttx-apps#142.

Signed-off-by: bigcat2026 <bigcat_2026@163.com>
@bigcat-2026
bigcat-2026 force-pushed the port/watchdog-test-validation branch from 1067622 to be39731 Compare November 6, 2026 01:42
Do not hard-code the expected reset cause per SoC. Add a -c option
so the caller can provide the BOARDIOC_RESETCAUSE value expected by
the target board.

Signed-off-by: bigcat2026 <bigcat_2026@163.com>
@bigcat-2026
bigcat-2026 force-pushed the port/watchdog-test-validation branch from 78e5b27 to b717808 Compare November 20, 2026 06:49
@xiaoxiang781216
xiaoxiang781216 merged commit 1354add into apache:master Nov 21, 2026
76 of 78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants