linux/tools/testing/selftests/watchdog# make run_tests TAP version 13 1..1 # timeout set to 45 # selftests: watchdog: watchdog-test # Watchdog Ticking Away! # .............................................# not ok 1 selftests: watchdog: watchdog-test # TIMEOUT 45 seconds And i got warning in dmesg [ 1953.229511] watchdog: watchdog0: watchdog did not stop! On 28/10/2024 13:55, Shuah Khan wrote: >>>> >>> >>> The system shouldn't reboot just because watchdog test is left running. >>> watchdog test keeps calling ioctl() with WDIOC_KEEPALIVE to make sure >>> the watchdog card timer is reset. >> >> Err.. >> >> How watchdog test keep calling ioctl() with WDIOC_KEEPALIVE after ./watchdog_test has finished? >> >> In my understanding, the cause is that, ./watchdog_test didn't goto neither >> A) >> 347 end: >> 348 /* >> 349 * Send specific magic character 'V' just in case Magic Close is >> 350 * enabled to ensure watchdog gets disabled on close. >> 351 */ >> 352 ret = write(fd, &v, 1); >> 353 if (ret < 0) >> 354 printf("Stopping watchdog ticks failed (%d)...\n", errno); >> >> nor B) > > Can you send strace output from "make run_tests" from your system? > > thanks, > -- Shuah