Merge branch 'bugfix/fix_unity_mem_leaks' into 'master'

fix(unity): Fixed memory leaks in unity tests

Closes IDFCI-1869

See merge request espressif/esp-idf!27164
This commit is contained in:
Sudeep Mohanty 2023-11-16 11:43:20 +08:00
commit 11097a4fc2
3 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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.