kopia lustrzana https://github.com/espressif/esp-idf
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!27164pull/12666/head
commit
11097a4fc2
|
@ -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.
|
||||
|
|
Ładowanie…
Reference in New Issue