You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/08/03 20:05:10 UTC

[incubator-nuttx-apps] branch master updated: testing/cxxtest: increase STACKSIZE to avoid crash

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 63a5ddc  testing/cxxtest: increase STACKSIZE to avoid crash
63a5ddc is described below

commit 63a5ddcc7cb741e5506badd432d1f98d1aa55d8a
Author: Peter Bee <bi...@xiaomi.com>
AuthorDate: Wed Jul 29 08:54:59 2020 +0000

    testing/cxxtest: increase STACKSIZE to avoid crash
    
    The previous version of cxxtest uses a fixed value(4096) for STACKSIZE,
    insufficient when no optimization options are set(CONFIG_DEBUG_NOOPT).
    This patch increased the STACKSIZE to CONFIG_DEFAULT_TASK_STACKSIZE for
    stability and consistency.
    
    Change-Id: I45a4806d2cda1583f60a5cf24b98b8df58f377d0
    Signed-off-by: Peter Bee <bi...@xiaomi.com>
---
 testing/cxxtest/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/cxxtest/Makefile b/testing/cxxtest/Makefile
index ea2af76..d2bb10a 100644
--- a/testing/cxxtest/Makefile
+++ b/testing/cxxtest/Makefile
@@ -43,7 +43,7 @@ MAINSRC = cxxtest_main.cxx
 
 PROGNAME = cxxtest
 PRIORITY = SCHED_PRIORITY_DEFAULT
-STACKSIZE = 4096
+STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
 MODULE = $(CONFIG_TESTING_CXXTEST)
 
 include $(APPDIR)/Application.mk