From 68a7da3f0be8b74a9e4eba450ba45a92e6b18dff Mon Sep 17 00:00:00 2001 From: "harshal.patil" Date: Wed, 14 Sep 2022 15:06:50 +0530 Subject: [PATCH] test_utils: reset critical lwip leap level Test cases calling test_case_uses_tcpip() set critical lwip leak level to 4095, but do not reset it to default. Hence, 4095 used to get added while calculating the critical threshold for the testcases following them. --- tools/unit-test-app/components/test_utils/test_runner.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/unit-test-app/components/test_utils/test_runner.c b/tools/unit-test-app/components/test_utils/test_runner.c index f9e1422361..79e918544e 100644 --- a/tools/unit-test-app/components/test_utils/test_runner.c +++ b/tools/unit-test-app/components/test_utils/test_runner.c @@ -58,6 +58,7 @@ void setUp(void) test_utils_record_free_mem(); test_utils_set_leak_level(CONFIG_UNITY_CRITICAL_LEAK_LEVEL_GENERAL, ESP_LEAK_TYPE_CRITICAL, ESP_COMP_LEAK_GENERAL); test_utils_set_leak_level(CONFIG_UNITY_WARN_LEAK_LEVEL_GENERAL, ESP_LEAK_TYPE_WARNING, ESP_COMP_LEAK_GENERAL); + test_utils_set_leak_level(0, ESP_LEAK_TYPE_CRITICAL, ESP_COMP_LEAK_LWIP); } typedef enum {