mirror of
https://github.com/open-vela/apps.git
synced 2025-12-20 01:10:11 +08:00
cjson_test:add define CONFIG_CJSON_NESTING_LIMIT
Change-Id: I89d1ffca71b110a8d3911989692f37a746af848a
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user