You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/08/03 14:26:55 UTC
[nuttx-apps] branch master updated: test: modify stacksize and priority
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
The following commit(s) were added to refs/heads/master by this push:
new fd261d839 test: modify stacksize and priority
fd261d839 is described below
commit fd261d839d71cc2e5d31a644510dc58ef9e8915f
Author: yangyalei <ya...@xiaomi.com>
AuthorDate: Thu Aug 3 10:29:00 2023 +0800
test: modify stacksize and priority
Signed-off-by: yangyalei <ya...@xiaomi.com>
---
netutils/cjson/Kconfig | 8 ++++++++
netutils/cjson/Makefile | 6 +++---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/netutils/cjson/Kconfig b/netutils/cjson/Kconfig
index d602ba852..d50a0d544 100644
--- a/netutils/cjson/Kconfig
+++ b/netutils/cjson/Kconfig
@@ -30,6 +30,14 @@ config CJSON_UNITY_TEST_DIR
string "cJSON test directory"
default "/data"
+config CJSON_TEST_PRIORITY
+ int "task priority"
+ default 100
+
+config CJSON_TEST_STACKSIZE
+ int "stack size"
+ default 102400
+
endif
endif
diff --git a/netutils/cjson/Makefile b/netutils/cjson/Makefile
index 0af762961..dc9927353 100644
--- a/netutils/cjson/Makefile
+++ b/netutils/cjson/Makefile
@@ -31,8 +31,8 @@ CONFIG_NETUTILS_CJSON_VERSION ?= "1.7.10"
CJSON_VERSION = $(patsubst "%",%,$(strip $(CONFIG_NETUTILS_CJSON_VERSION)))
CJSON_TARBALL = v$(CJSON_VERSION).tar.gz
-
CJSON_UNPACKNAME = cJSON
+
UNPACK ?= tar -zxf
CJSON_UNPACKDIR = $(WD)/$(CJSON_UNPACKNAME)
@@ -75,8 +75,8 @@ MAINSRC += $(UNITY_CJSONTESTCS)
CSRCS += $(CJSON_SRCDIR)/tests/unity_setup.c
CFLAGS += -Wno-unused-function
-PRIORITY = SCHED_PRIORITY_DEFAULT
-STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE)
+PRIORITY = $(CONFIG_CJSON_TEST_PRIORITY)
+STACKSIZE = $(CONFIG_CJSON_TEST_STACKSIZE)
endif
$(CJSON_SRCDIR)$(DELIM)cJSON.h: $(CJSON_UNPACKNAME)