mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-26 20:00:50 +00:00
ostest: test wdog only in flat mode
Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com>
This commit is contained in:
parent
e13d37f4d0
commit
54a8915f29
4 changed files with 12 additions and 5 deletions
|
|
@ -27,8 +27,7 @@ if(CONFIG_TESTING_OSTEST)
|
|||
sigprocmask.c
|
||||
sighand.c
|
||||
signest.c
|
||||
sighelper.c
|
||||
wdog.c)
|
||||
sighelper.c)
|
||||
|
||||
if(CONFIG_DEV_NULL)
|
||||
list(APPEND SRCS dev_null.c)
|
||||
|
|
@ -148,6 +147,10 @@ if(CONFIG_TESTING_OSTEST)
|
|||
list(APPEND SRCS nxevent.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_BUILD_FLAT)
|
||||
list(APPEND SRCS wdog.c)
|
||||
endif()
|
||||
|
||||
set(OSTEST_SRCS ostest_main.c ${SRCS})
|
||||
nuttx_add_application(NAME ostest SRCS ${OSTEST_SRCS})
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ MODULE = $(CONFIG_TESTING_OSTEST)
|
|||
# NuttX OS Test
|
||||
|
||||
CSRCS = getopt.c libc_memmem.c restart.c sigprocmask.c sighand.c \
|
||||
signest.c sighelper.c wdog.c
|
||||
signest.c sighelper.c
|
||||
|
||||
MAINSRC = ostest_main.c
|
||||
|
||||
|
|
@ -144,4 +144,8 @@ CSRCS += nxevent.c
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_BUILD_FLAT),y)
|
||||
CSRCS += wdog.c
|
||||
endif
|
||||
|
||||
include $(APPDIR)/Application.mk
|
||||
|
|
|
|||
|
|
@ -524,7 +524,7 @@ static int user_main(int argc, char *argv[])
|
|||
check_test_memory_usage();
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_BUILD_KERNEL
|
||||
#ifdef CONFIG_BUILD_FLAT
|
||||
printf("\nuser_main: wdog test\n");
|
||||
wdog_test();
|
||||
check_test_memory_usage();
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ typedef struct wdtest_param_s
|
|||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_BUILD_KERNEL
|
||||
#ifdef CONFIG_BUILD_FLAT
|
||||
static void wdtest_callback(wdparm_t param)
|
||||
{
|
||||
struct timespec tp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue