Skip to content

Commit f2e9924

Browse files
raiden00plxiaoxiang781216
authored andcommitted
testing/ostest: set STACKSIZE for the standalone ELF build
The CMake build passed no STACKSIZE, so kernel-mode ELF loading fell back to CONFIG_ELF_STACKSIZE, which may exceed the initial user heap. Use CONFIG_DEFAULT_TASK_STACKSIZE as the Makefile does. Signed-off-by: raiden00pl <raiden00@railab.me> Assisted-by: Claude Code
1 parent eea8384 commit f2e9924

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

testing/ostest/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ if(CONFIG_TESTING_OSTEST)
176176
endif()
177177

178178
set(OSTEST_SRCS ostest_main.c ${SRCS})
179-
nuttx_add_application(NAME ostest SRCS ${OSTEST_SRCS})
179+
nuttx_add_application(NAME ostest SRCS ${OSTEST_SRCS} STACKSIZE
180+
${CONFIG_DEFAULT_TASK_STACKSIZE})
180181

181182
endif()

0 commit comments

Comments
 (0)