cjson_test:add define CONFIG_CJSON_NESTING_LIMIT

Change-Id: I89d1ffca71b110a8d3911989692f37a746af848a
This commit is contained in:
chenrun1
2024-10-12 12:25:47 +08:00
committed by openvela-robot
parent 17faa8ff39
commit 8f4c75f04f
2 changed files with 5 additions and 0 deletions

View File

@@ -38,6 +38,10 @@ config CJSON_TEST_STACKSIZE
int "stack size"
default 102400
config CJSON_NESTING_LIMIT
int "NESTING_LIMIT"
default 100
endif # NETUTILS_CJSON_TEST
endif # NETUTILS_CJSON

View File

@@ -74,6 +74,7 @@ MAINSRC += $(UNITY_CJSONTESTCS)
CSRCS += $(CJSON_SRCDIR)/tests/unity_setup.c
CFLAGS += -Wno-unused-function
CFLAGS += -DCJSON_NESTING_LIMIT=CONFIG_CJSON_NESTING_LIMIT
PRIORITY = $(CONFIG_CJSON_TEST_PRIORITY)
STACKSIZE = $(CONFIG_CJSON_TEST_STACKSIZE)