This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 302c1f9dca1afd6152ef33d1d16bf163d61b6715
Author: yangguangcai <[email protected]>
AuthorDate: Fri Sep 6 14:34:29 2024 +0800

    drivertest_watchdog:change busyloop after capture.
    
    busyloop should be after sem_init and WDIOC_CAPTURE.
    
    Signed-off-by: yangguangcai <[email protected]>
---
 testing/drivertest/drivertest_watchdog.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testing/drivertest/drivertest_watchdog.c 
b/testing/drivertest/drivertest_watchdog.c
index 8d6ded436..e1a807f06 100644
--- a/testing/drivertest/drivertest_watchdog.c
+++ b/testing/drivertest/drivertest_watchdog.c
@@ -493,6 +493,10 @@ static void test_case_wdog_04(FAR void **state)
   ret = ioctl(dev_fd, WDIOC_CAPTURE, &watchdog_capture);
   assert_return_code(ret, OK);
 
+  /* Prevent the os entering pm then turn off watchdog. */
+
+  up_udelay(2 * wdg_state->timeout * 1000);
+
   sem_wait(&g_semaphore);
   sem_destroy(&g_semaphore);
 

Reply via email to