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 9353bcefa2fc7e2f07dba65678b96eb9e15181fc
Author: liugui <[email protected]>
AuthorDate: Sat Sep 14 11:42:38 2024 +0800

    skip oneshot timer test
    
    Signed-off-by: liugui <[email protected]>
    Signed-off-by: buxiasen <[email protected]>
---
 testing/drivertest/CMakeLists.txt | 2 +-
 testing/drivertest/Kconfig        | 4 ++++
 testing/drivertest/Makefile       | 2 +-
 3 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/testing/drivertest/CMakeLists.txt 
b/testing/drivertest/CMakeLists.txt
index 2185a7bb8..8bae9ce21 100644
--- a/testing/drivertest/CMakeLists.txt
+++ b/testing/drivertest/CMakeLists.txt
@@ -85,7 +85,7 @@ if(CONFIG_TESTING_DRIVER_TEST)
       drivertest_timer.c)
   endif()
 
-  if(CONFIG_ONESHOT)
+  if(CONFIG_TESTING_ONESHOT_TEST)
     nuttx_add_application(
       NAME
       cmocka_driver_oneshot
diff --git a/testing/drivertest/Kconfig b/testing/drivertest/Kconfig
index b0991737a..e0d073d51 100644
--- a/testing/drivertest/Kconfig
+++ b/testing/drivertest/Kconfig
@@ -24,4 +24,8 @@ config TESTING_DRIVER_TEST_SIMPLE
        bool "Enable cmocka driver simple test"
        default n
 
+config TESTING_ONESHOT_TEST
+       bool "Enable cmocka oneshot test"
+       default n
+               depends on ONESHOT
 endif
diff --git a/testing/drivertest/Makefile b/testing/drivertest/Makefile
index 444b3fc6c..aae6992df 100644
--- a/testing/drivertest/Makefile
+++ b/testing/drivertest/Makefile
@@ -47,7 +47,7 @@ MAINSRC  += drivertest_timer.c
 PROGNAME += cmocka_driver_timer
 endif
 
-ifneq ($(CONFIG_ONESHOT),)
+ifneq ($(CONFIG_TESTING_ONESHOT_TEST),)
 MAINSRC  += drivertest_oneshot.c
 PROGNAME += cmocka_driver_oneshot
 endif

Reply via email to