mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-19 14:26:01 -04:00
fix(unity): Fixed memory leaks in unity tests
This commit fixes memory leaks in unity tests when the debug option CONFIG_FREERTOS_USE_LIST_DATA_INTEGRITY_CHECK_BYTES is enabled. The commit increases the threshold to 1200 bytes from 1024 bytes.
This commit is contained in:
parent
386111e8d1
commit
a583063664
@ -18,7 +18,7 @@ menu "IDF unit test"
|
||||
|
||||
config UNITY_CRITICAL_LEAK_LEVEL_GENERAL
|
||||
int "Critical leak"
|
||||
default 1024
|
||||
default 1200
|
||||
|
||||
config UNITY_CRITICAL_LEAK_LEVEL_LWIP
|
||||
int "Critical leak for UT which use LWIP component"
|
||||
|
@ -18,7 +18,7 @@ menu "IDF unit test"
|
||||
|
||||
config UNITY_CRITICAL_LEAK_LEVEL_GENERAL
|
||||
int "Critical leak"
|
||||
default 1024
|
||||
default 1200
|
||||
|
||||
config UNITY_CRITICAL_LEAK_LEVEL_LWIP
|
||||
int "Critical leak for UT which use LWIP component"
|
||||
|
@ -36,7 +36,7 @@ typedef enum {
|
||||
* @brief Adjust the memory leak thresholds for unit tests.
|
||||
*
|
||||
* Usually, unit tests will check if memory is leaked. Some functionality used by unit tests may unavoidably
|
||||
* leak memory. This is why there is a default threshold for memory leaks (currently 1024 bytes).
|
||||
* leak memory. This is why there is a default threshold for memory leaks (currently 1200 bytes).
|
||||
* Within this range, the number of bytes leaked will be visually reported on the terminal, but no test failure will
|
||||
* be triggered. Any memory leak above the default threshold will trigger a unit test failure.
|
||||
* This function allows to adjust that memory leak threshold.
|
||||
|
Loading…
Reference in New Issue
Block a user