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:
Sudeep Mohanty 2023-11-15 09:06:06 +01:00
parent 386111e8d1
commit a583063664
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.