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.
This commit is contained in:
harshal.patil 2022-09-14 15:06:50 +05:30 committed by Mahavir Jain
parent 317eeddce4
commit 68a7da3f0b
No known key found for this signature in database
GPG Key ID: 99324EF4A00734E0

View File

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